rsnext/examples/with-graphql-faunadb/schema.gql
fauna-brecht 581e338614 with-graphql-faunadb (#9387)
* with-graphql-faunadb

* Use latest next

* Use node-fetch

* removed import to next/config

* Updated titles

* Lint fix

* Link to the schema
2019-11-13 13:15:27 -05:00

13 lines
521 B
GraphQL

# A guestbook entry requires a twitter handle (!) and a story
# However, FaunaDB automatically adds two private values: _id and _ts
type GuestbookEntry {
twitter_handle: String!
story: String!
# _id: Generated by FaunaDB as each document's unique identifier
# _ts: Timestamp generated by FaunaDB upon object creation
}
# A query named 'entries' which returns an array of GuestbookEntry objects
# Implicit arguments: _size (count) and _cursor (location within the Index)
type Query {
entries: [GuestbookEntry]
}