mirror of
https://github.com/higherkindness/mu-haskell.git
synced 2024-10-27 00:12:57 +03:00
7512320ee6
Co-authored-by: Alejandro Serrano <trupill@gmail.com>
28 lines
347 B
GraphQL
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
|
|
}
|