~/talk

Go Beyond the Spec With Custom Directives

Talkat GraphQLConf 2023 · on Wednesday, 2023-09-20· at 14:50· Grand Peninsula A,B,C· [api-design, frontend-architecture]
slides:none on file

GraphQL allows custom directives beyond the spec and they work as either type-system vs executable directives; built-ins include @skip @include @deprecated @specifiedBy. Concrete examples: StepZen’s address directive pulls REST responses into fields, @auth and a reusable @sort handle authentication, pagination and ordering without changing resolvers. Common implementation uses an executable schema with transformer functions (graphql-tools style). Names must be unique and order-sensitive, so teams often prefix custom names to avoid collisions; a public directory of directives would reduce duplication.

AI-written summary · about

  1. 0:00Introduction
  2. 3:09Understanding directives
  3. 5:09Type system vs executable
  4. 8:53Directives in practice
  5. 12:08Implementing custom logic
  6. 16:24Use cases for directives
  7. 22:17Ecosystem and best practices
  8. 24:44Recap and Q&A
~/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.