mu-haskell/graphql/exe/schema.graphql
Flavio Corpa 7512320ee6 Read GraphQL Schema Definitions (#166)
Co-authored-by: Alejandro Serrano <trupill@gmail.com>
2020-04-08 15:24:36 +02:00

28 lines
347 B
GraphQL

type Book {
id: Int!
title: String!
author: Author!
}
type Author {
id: Int!
name: String!
books: [Book!]!
}
type Query {
author(name: String! = ".*"): Author
book(title: String! = ".*"): Book
authors: [Author!]!
books: [Book!]!
}
type Subscription {
books: Book!
}
schema {
query: Query
subscription: Subscription
}