Skip to content

Files

Latest commit

 

History

History

federation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Apollo Federation example

  1. Start tailcall subgraph examples:
  • cargo run -- start examples/apollo_federation_subgraph_post.graphql
  • cargo run -- start examples/apollo_federation_subgraph_user.graphql
  1. Run Apollo router by one of the following methods:
  • run @apollo/gateway with npm start (with npm install for the first time) from "examples/federation" folder
  • start apollo router with rover.sh script (install apollo rover first)
  1. Navigate to http://localhost:4000 and execute supergraph queries, see examples

Query examples

{
  posts {
    id
    title
    user {
      id
      name
    }
  }
}