581e338614
* with-graphql-faunadb * Use latest next * Use node-fetch * removed import to next/config * Updated titles * Lint fix * Link to the schema
13 lines
521 B
GraphQL
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]
|
|
}
|