Liking cljdoc? Tell your friends :D
Clojure only.

specialist-server.core


executorclj

(executor schema)

Alias for specialist-server.core/server

Alias for specialist-server.core/server
sourceraw docstring

serverclj

(server schema & pre-strings)

Creates GraphQL server fn from schema.

Usage: (def graphql (server {:query {...} :mutation {...}})) (graphql {:query "query FooQuery {...}" :context my-ctx :root {}})

You can also pass in query strings which are pre-parsed and can be called by name (similiar to stored procedures):

(def graphql-pre (server {:query {...} :mutation {...}} (slurp path-to-queries-1) ... (slurp path-to-queries-N))) (graphql-pre {:queryName "FooQuery" :variables {...} :context my-ctx :root {}})

Creates GraphQL server fn from schema.

Usage:
(def graphql (server {:query {...} :mutation {...}}))
(graphql {:query "query FooQuery {...}" :context my-ctx :root {}})

You can also pass in query strings which are pre-parsed and can be called by name (similiar to stored procedures):

(def graphql-pre (server {:query {...} :mutation {...}} (slurp path-to-queries-1) ... (slurp path-to-queries-N)))
(graphql-pre {:queryName "FooQuery" :variables {...} :context my-ctx :root {}})
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