Skip to content

Instantly share code, notes, and snippets.

@salwator
Created October 8, 2019 14:07
Show Gist options
  • Save salwator/0edba5bdf6ec5ed82892cffb30a5b464 to your computer and use it in GitHub Desktop.
Save salwator/0edba5bdf6ec5ed82892cffb30a5b464 to your computer and use it in GitHub Desktop.
GraphQL schema for federated service extending saleor
type User @key(fields: "id") @extends {
id: ID! @external
reviews: [Review]
}
type Review @key(fields: "id") {
id: ID!
title: String
author: User
}
type Query @extends {
reviews: [Review!]!
}
type Mutation @extends {
addReview: Review
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment