~/talk

A Mock Is a Promise: Making GraphQL Mocks Enforceable

Talkat apidays India 2026 · 2026-08-19..08-20· [graphql, testing]
slides:none on file

Shows a contract-first workflow where GraphQL SDL and examples become both the mock for frontend work and the contract tests for the real service using Specmatic. Demo builds a checkout BFF, unblocks frontend with mocks, then runs contract tests against the real BFF and CI. A real failure is reproduced: the resolver maps the downstream field wrongly — estimated date vs delivery date mapping — causing GraphQL non-null errors; tests fail, the mapping is fixed, and the contract tests pass as a release gate.

AI-written summary · about

  1. 0:00Blocked checkout flow intro
  2. 1:31Mocks as enforceable promises
  3. 2:13BFF service with delivery mock
  4. 5:31Frontend with BFF mock
  5. 9:31Frontend scenarios with BFF mocks
  6. 11:16BFF service vs mock validation
  7. 14:30Contract testing as release gate
  8. 17:02BFF service mapping fix
  9. 19:34Mocking and contract testing in CI
  10. 21:21Key takeaways and closing
~/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.