~/talk

How to build a GraphQL API with Next.js and Vercel

Talkat Next.js Conf 2021 · on Tuesday, 2021-10-26· [graphql, nodejs]
github:shaque
slides:none on file

Builds a working serverless GraphQL API inside Next.js API routes, using Apollo Server Micro v3 and micro-cors, with a concrete fix: disable Next.js bodyParser for Apollo. Connects to Fauna DB via its JS driver, generates a Fauna secret, creates a book collection and documents, and queries them with FQL map/paginate/get. Deploys with Vercel CLI so the API becomes a serverless function, verifies queries in Apollo Studio, and inspects function logs on Vercel.

AI-written summary · about

  1. 0:00Start
  2. 0:22Why Would You Want To Build a Graphql Api with Next
  3. 2:44Dependencies
  4. 4:20Graphql Model
  5. 4:59Resolver
  6. 7:06Apollo Server
  7. 12:53Connect to a Database
  8. 13:26Create a New Database
  9. 14:28Add Document
  10. 15:03Install the Faunadb Driver
  11. 18:38Query the Database
  12. 19:48Fql Cheat Sheet
  13. 21:06Lambda Function
  14. 23:11Deploy Our Application
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.