rsnext/examples/with-fauna/schema.gql
Artyom Kurnikov fe3f520d8d
Update Fauna example with new guestbook (#27295)
Based on https://github.com/vercel/next.js/pull/26708

- Renames FaunaDB -> Fauna
- Moves to Tailwind instead of bespoke styling
- Use SWR instead of hand-rolled fetch wrapper
- List/Create API for Guestbook
- Preps for setting correct environment variables from Vercel integration
2021-08-02 17:09:04 +00:00

14 lines
456 B
GraphQL

type GuestbookEntry {
name: String!
message: String!
createdAt: Time!
# _id: Generated by Fauna as each document's unique identifier
# _ts: Timestamp generated by Fauna upon object updating
}
# 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!]
@resolver(name: "listLatestEntries", paginated: true)
}