Liking cljdoc? Tell your friends :D

bff.schema-builder


build-schemaclj

(build-schema spec)
(build-schema spec extensions)

Compile a Lacinia schema from spec. extensions is the caller-owned config map ({:enrichers :validators :transformers :resolvers :retry-hooks :cache :scalars}); it is closed over every resolver so runtime requests carry it into bff.executor/run-endpoint.

Object types can be declared inline on each endpoint's output_type or at the top level under output_types: (referenced from an endpoint by bare name). Duplicate type names are merged field-by-field; conflicting types on a shared field name throw. Input types (input_types:) get the same treatment.

Compile a Lacinia schema from `spec`. `extensions` is the caller-owned
config map ({:enrichers :validators :transformers :resolvers :retry-hooks
:cache :scalars}); it is closed over every resolver so runtime requests
carry it into bff.executor/run-endpoint.

Object types can be declared inline on each endpoint's `output_type` or at
the top level under `output_types:` (referenced from an endpoint by bare
name). Duplicate type names are merged field-by-field; conflicting types
on a shared field name throw. Input types (`input_types:`) get the same
treatment.
sourceraw docstring

build-schema-mapclj

(build-schema-map spec)
(build-schema-map spec extensions)

Intermediate schema map, before schema/compile. Public so SDL emission can share the same source.

Intermediate schema map, before schema/compile. Public so SDL emission
can share the same source.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close