mirror of
https://github.com/graphql-hive/console
synced 2026-04-21 14:37:17 +00:00
Co-authored-by: Kamil Kisiela <kamil.kisiela@gmail.com> Co-authored-by: Dotan Simha <dotansimha@gmail.com> Co-authored-by: Denis Badurina <denis@denelop.com>
17 lines
324 B
GraphQL
17 lines
324 B
GraphQL
type Review @key(fields: "id") {
|
|
id: ID!
|
|
body: String
|
|
author: User @provides(fields: "username")
|
|
product: Product
|
|
}
|
|
|
|
extend type User @key(fields: "id") {
|
|
id: ID! @external
|
|
username: String @external
|
|
reviews: [Review]
|
|
}
|
|
|
|
extend type Product @key(fields: "upc") {
|
|
upc: String! @external
|
|
reviews: [Review]
|
|
}
|