Skip to content

Apollo subgraph example #603

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 2, 2023
Merged

Apollo subgraph example #603

merged 1 commit into from
Mar 2, 2023

Conversation

pavelnikolov
Copy link
Member

@pavelnikolov pavelnikolov commented Mar 2, 2023

fixes: #602
fixes: #528

In order to test:

  1. Pull the master branch
  2. Run cd example/apollo_federation/subgraph
  3. Run go run server.go
  4. Open http://localhost:8080 in your browser
  5. Test with a query like this:
     query subgraph{
       post(id: "3") {
         id
         title
       }
       _entities(representations: ["{\"__typename\": \"Post\", \"id\": \"3\"}"]) {
         __typename
         ... on Post {
           id
           title
         }
       }
       _service {
         sdl
       }
     }

Screenshot 2023-03-02 at 14 16 47

@pavelnikolov pavelnikolov added this to the v1.6.0 milestone Mar 2, 2023
@pavelnikolov pavelnikolov force-pushed the apollo-federation-subgraph branch from 1b04e19 to e308973 Compare March 2, 2023 12:17
@pavelnikolov pavelnikolov merged commit 5de2077 into master Mar 2, 2023
@pavelnikolov pavelnikolov deleted the apollo-federation-subgraph branch March 2, 2023 12:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Apollo Federation subgraph example Apollo Federation Compatibility
1 participant