(explain x)Explains x using malli.core/explain.
Expects x to be a malli-like vector.
Explains `x` using `malli.core/explain`. Expects `x` to be a malli-like vector.
(gql & objs)Attempts to produce a GraphQL request string from objs.
Expects objs to either be instance(s) of oksa.alpha.protocol/Representable or malli-like vector(s).
See oksa.alpha.api/api, README.md, or tests for examples.
Attempts to produce a GraphQL request string from `objs`. Expects `objs` to either be instance(s) of `oksa.alpha.protocol/Representable` or malli-like vector(s). See `oksa.alpha.api/api`, `README.md`, or tests for examples.
(gql* opts & objs)Attempts to produce a GraphQL request string from objs.
Expects objs to either be instance(s) of oksa.alpha.protocol/Representable or malli-like vector(s).
opts is an (optional) map and uses the following fields here:
| field | description |
|---|---|
:oksa/name-fn | Single-arg fn that applies fn to all names. |
| ----------------------- | ---------------------------------------------------------------------------------- |
:oksa/field-fn | Single-arg fn that applies fn to all fields. |
| Overrides :oksa/name-fn. | |
| ----------------------- | ---------------------------------------------------------------------------------- |
:oksa/enum-fn | Single-arg fn that applies fn to all enums. |
| Overrides :oksa/name-fn. | |
| ----------------------- | ---------------------------------------------------------------------------------- |
:oksa/directive-fn | Single-arg fn that applies fn to all directives. |
| Overrides :oksa/name-fn. | |
| ----------------------- | ---------------------------------------------------------------------------------- |
:oksa/type-fn | Single-arg fn that applies fn to all types. |
| Overrides :oksa/name-fn. |
See oksa.alpha.api/api, README.md, or tests for examples.
Attempts to produce a GraphQL request string from `objs`. Expects `objs` to either be instance(s) of `oksa.alpha.protocol/Representable` or malli-like vector(s). `opts` is an (optional) map and uses the following fields here: | field | description | |-----------------------|----------------------------------------------------------------------------------| | `:oksa/name-fn` | Single-arg fn that applies fn to all names. | |-----------------------|----------------------------------------------------------------------------------| | `:oksa/field-fn` | Single-arg fn that applies fn to all fields. | | | Overrides :oksa/name-fn. | |-----------------------|----------------------------------------------------------------------------------| | `:oksa/enum-fn` | Single-arg fn that applies fn to all enums. | | | Overrides :oksa/name-fn. | |-----------------------|----------------------------------------------------------------------------------| | `:oksa/directive-fn` | Single-arg fn that applies fn to all directives. | | | Overrides :oksa/name-fn. | |-----------------------|----------------------------------------------------------------------------------| | `:oksa/type-fn` | Single-arg fn that applies fn to all types. | | | Overrides :oksa/name-fn. | See `oksa.alpha.api/api`, `README.md`, or tests for examples.
(unparse x)(unparse opts x)Attempts to parse x and produce a GraphQL request string.
opts is an (optional) map and uses the following fields here:
| field | description |
|---|---|
:oksa/name-fn | Single-arg fn that applies fn to all names. |
| ----------------------- | ---------------------------------------------------------------------------------- |
:oksa/field-fn | Single-arg fn that applies fn to all fields. |
| Overrides :oksa/name-fn. | |
| ----------------------- | ---------------------------------------------------------------------------------- |
:oksa/enum-fn | Single-arg fn that applies fn to all enums. |
| Overrides :oksa/name-fn. | |
| ----------------------- | ---------------------------------------------------------------------------------- |
:oksa/directive-fn | Single-arg fn that applies fn to all directives. |
| Overrides :oksa/name-fn. | |
| ----------------------- | ---------------------------------------------------------------------------------- |
:oksa/type-fn | Single-arg fn that applies fn to all types. |
| Overrides :oksa/name-fn. |
Expects x to be a malli-like vector.
Attempts to parse `x` and produce a GraphQL request string. `opts` is an (optional) map and uses the following fields here: | field | description | |-----------------------|----------------------------------------------------------------------------------| | `:oksa/name-fn` | Single-arg fn that applies fn to all names. | |-----------------------|----------------------------------------------------------------------------------| | `:oksa/field-fn` | Single-arg fn that applies fn to all fields. | | | Overrides :oksa/name-fn. | |-----------------------|----------------------------------------------------------------------------------| | `:oksa/enum-fn` | Single-arg fn that applies fn to all enums. | | | Overrides :oksa/name-fn. | |-----------------------|----------------------------------------------------------------------------------| | `:oksa/directive-fn` | Single-arg fn that applies fn to all directives. | | | Overrides :oksa/name-fn. | |-----------------------|----------------------------------------------------------------------------------| | `:oksa/type-fn` | Single-arg fn that applies fn to all types. | | | Overrides :oksa/name-fn. | Expects `x` to be a malli-like vector.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |