Skip to content

sijonelis/spring-gqlfederation-example

Repository files navigation

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
    }
  }
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published