/graphql-gateway-federation

A sample that show the possibilities of Apollo federation

Primary LanguageJavaScript

Gateway

npm start
query Product {
  product(id: "123") {
    id
    name
    price
  }
}

Open issue

@internal directive is still in draft the rename to productPrice (instead of product) is to prevent naming conflicts in the gateway. Ideally the query in the pricing typeDefs looks like:

extend type Query {
  product(id: String!): Product! @internal
}