Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

This repository is an example of using Apollo Federation to build a single schema on top of multiple services.

License

Notifications You must be signed in to change notification settings

simpletut/graphql-federation-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GraphQL Federation Demo

This repository is an example of using Apollo Federation to build a single schema on top of multiple services.

The microservices are located under the ./services folder and the gateway that composes the overall schema is in the gateway.js file.

Run the install command

npm i

Start in dev mode

npm run dev

Please note: Should be running on http://localhost:4000

Test query

{
  posts {
    title
    body
    postedBy {
      name
      email
    }
    comments {
      body
      postedBy {
        name
        email
      }
    }
  }
}

About

This repository is an example of using Apollo Federation to build a single schema on top of multiple services.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.