~/talk

Supercharge your schemas with custom directives

Talkat GraphQL Day Toronto 2019 · on Friday, 2019-03-15· [graphql, developer-experience]
slides:none on file

Shows how to implement runtime behavior with Apollo SchemaDirectiveVisitor, registers directives via makeExecutableSchema, and wires custom resolvers that override or replace field results. Gives a concrete replace directive example, an async rest directive that fetches external APIs, and a hasScope directive for token-based authorization that stacks with others. Demonstrates where to hook into field and object nodes, caveats about schema-first vs code-first, and a working tutorial site trygql.com.

AI-written summary · about

  1. 0:00Start
  2. 1:06What Is a Schema Directive
  3. 1:37Advice on Directives
  4. 2:25Schema Directives
  5. 4:10Authentication
  6. 4:26String Formatting
  7. 9:47Rest Directive
  8. 12:02Custom Schema Directives
  9. 13:48Middleware
~/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.