mirror of
https://github.com/graphql-hive/console
synced 2026-04-23 07:27:17 +00:00
16 lines
190 B
GraphQL
16 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")
|
||
|
|
}
|