console/packages/libraries/cli/examples/stitching.posts.graphql

15 lines
190 B
GraphQL

type Post {
id: ID!
message: String!
author: User
}
type User {
id: ID!
posts: [Post]
}
type Query {
post(id: ID!): Post
users(ids: [ID!]!): [User]! @merge(keyField: "id")
}