Created
April 10, 2021 11:15
-
-
Save ObsidianCat/4775c56333c0ea0c38acc4a2418e1cae to your computer and use it in GitHub Desktop.
Apollo federation directives
This file contains 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 Review { | |
body: String | |
author: User @provides(fields: "username") | |
product: Product | |
} | |
extend type User @key(fields: "id") { | |
id: ID! @external | |
reviews: [Review] | |
} | |
extend type Product @key(fields: "upc") { | |
upc: String! @external | |
reviews: [Review] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment