0:00 / 0:00
Robust APIs with clojure.spec & GraphQL - Lily Goh + Dom Kiva-Meyer
ClojureTV
111K subscribers • 159 videos on Hallway
- Recommended by 1 person: 1 in engineering communities.
- Presented by Lily Goh and Dom Kiva-Meyer
- Linked in the descriptionparen-com/serene
- May be out of date. Uploaded 7 years ago, in an area where tools change fast.
Intermediate. Assumes working knowledge.
6.2K views7 years ago1 recommendation
Programming languagesWeb developmentLisp and ClojureAPI design
Lily Goh and Dom Kiva-Meyer demonstrate how to augment GraphQL APIs with clojure.spec to share validation and coercion rules between backend and frontend.
Wouldn’t you like to define and consume your entire API with clojure.spec? Specifying an entire REST API is a manual and error-prone process, but specifying an entire GraphQL API can be automatic and fool-proof. Though GraphQL’s type system is limited, we can use clojure.spec to augment GraphQL with capabilities beyond what the GraphQL specification is capable of expressing, and we can do this without losing robustness. When using clojure.spec with GraphQL, API specs can be easily shared between the backend and frontend and used for validation and coercion. Project: github.com/paren-com/serene