Created
October 8, 2019 14:07
-
-
Save salwator/0edba5bdf6ec5ed82892cffb30a5b464 to your computer and use it in GitHub Desktop.
GraphQL schema for federated service extending saleor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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