fe3f520d8d
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
14 lines
456 B
GraphQL
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)
|
|
}
|