Liking cljdoc? Tell your friends :D

e85th.graphql-query.core

Provides functions to substitute values in graphql query templates.

Provides functions to substitute values in graphql query templates.
raw docstring

defqueriescljmacro

(defqueries file)
(defqueries file opts)

Identifies queries in file and interns vars in the namespace that this is called from.

Identifies queries in `file` and interns vars in the namespace that this is called from.
sourceraw docstring

group-by+clj/s

(group-by+ key-fn val-fn xs)
(group-by+ key-fn val-fn val-agg-fn xs)

Similar to group by, but allows applying val-fn to each item in the grouped by list of each key. Can also apply val-agg-fn to the result of mapping val-fn. All input fns are 1 arity. If val-fn and val-agg-fn were the identity fn then this behaves the same as group-by.

Similar to group by, but allows applying val-fn to each item in the grouped by list of each key.
Can also apply val-agg-fn to the result of mapping val-fn. All input fns are 1 arity.
If val-fn and val-agg-fn were the identity fn then this behaves the same as group-by.
sourceraw docstring

hydrateclj/s

(hydrate query m)

Takes a string with clojure keyword placeholders and a map with substitution values Replaces all occurrences of a keyword in s with values from map m. Returns the transformed string. If m does not contain a key an exception is thrown.

Takes a string with clojure keyword placeholders and a map with substitution values
Replaces all occurrences of a keyword in s with values from map `m`. Returns the
transformed string. If `m` does not contain a key an exception is thrown.
sourceraw docstring

hydrate-query-tokensclj/s

(hydrate-query-tokens query-tokens m)

This should not be used by clients. This has to be public to be used in macros.

This should not be used by clients.
This has to be public to be used in macros.
sourceraw docstring

IFormatArgclj/s≠protocol

Format arguments for graphql operations. Implementations for common Clojure types are provided such as String, maps, sequences, UUID, Keyword nil etc.

Format arguments for graphql operations. Implementations for
common Clojure types are provided such as String, maps, sequences,
UUID, Keyword nil etc.

arg->strclj/s

(arg->str arg)

Returns a string representation of arg.

Returns a string representation of `arg`.
sourceraw docstring

lisp-caseclj/s

(lisp-case s)

Lower case s and separate words with dashes. foo bar => foo-bar camelCase => camel-case This is also referred to as kebab-case in some circles.

Lower case s and separate words with dashes.
foo bar => foo-bar
camelCase => camel-case
This is also referred to as kebab-case in some circles.
sourceraw docstring

valid-op-name?clj/s

(valid-op-name? s)

Does s represent a valid op name.

Does s represent a valid op name.
sourceraw docstring

variable-patternclj/s

source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close