~/talk

Autogenerate GraphQL API from Prisma schema

Talkat Prisma Day 2021 · 2021-06-29..06-30· [graphql, databases]
links:none on file
slides:none on file

Generates a complete GraphQL CRUD API from a Prisma schema by adding the TypeGraphQL-Prisma generator to prisma generate, outputting TypeScript/JS classes, args, input/output types and autogenerates CRUD and relation resolvers that wire to Prisma Client put in the context. Demo executes queries, mutations and groupBy and returns nested posts correctly, shows filtering/ordering, and creates records. Supports selecting which resolvers to include, omitting or renaming fields via TypeGraphQL.omit doc comments, and adding custom resolvers. Resolves nested relations via Prisma Client.

AI-written summary · about

  1. 0:00Introduction and overview
  2. 13:27Demo and Q&A session
  3. 17:02API maintenance and future
~/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.