Provides functions to substitute values in graphql query templates.
Provides functions to substitute values in graphql query templates.
(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.
(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.
(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.
(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.
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->str arg)
Returns a string representation of arg
.
Returns a string representation of `arg`.
(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.
(valid-op-name? s)
Does s represent a valid op name.
Does s represent a valid op name.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close