Skip to content

Latest commit

 

History

History
59 lines (54 loc) · 1.07 KB

File metadata and controls

59 lines (54 loc) · 1.07 KB

Java GraphQL Federation Server Example With Spring Boot

This repo showcases Java GraphQL Federation Server with Spring Boot

npm --proxy http://localhost:10809 install if using v2ray

Launch:

  • start four java services (inventory, product, review, user):
mvn install 
mvn run

or use any other means to start them~

  • start graphql server. You must have node and npm installed. When in ./apollo-federation-js run the following:
npm install
node gateway.js

Further reads:

Query examples:

{
  topProducts {
    name
    price
    upc
    reviews{
      author{
        id
        name
        username
        address {
          city
          country
        }
      }
      body
    }
  }
}
{
  trivia {
    id
    body
    author {
      id
      name
    }
  }
}