Liking cljdoc? Tell your friends :D

venia.core


->query-strclj/smultimethod


ArgumentFormatterclj/s≠protocol

Protocol responsible for query arguments' formatting to string. Has separate implementations for general data types in cljs and clj.

Protocol responsible for query arguments' formatting to string.
Has separate implementations for general data types in cljs and clj.

arg->strclj/s

(arg->str arg)
raw docstring

arguments->strclj/s

(arguments->str args)

Given a map of query arguments, formats them and concatenates to string.

E.g. (arguments->str {:id 1 :type "human"}) => id:1,type:"human"

Given a map of query arguments, formats them and concatenates to string.

E.g. (arguments->str {:id 1 :type "human"}) => id:1,type:"human"
raw docstring

fields->strclj/s

(fields->str fields)

Given a spec conformed vector of query fields (and possibly nested fields), concatenates them to string, keeping nested structures intact.

Given a spec conformed vector of query fields (and possibly nested fields),
concatenates them to string, keeping nested structures intact.
raw docstring

fragment->strclj/s

(fragment->str fragment)

Given a fragment map, formats it and concatenates to string,

Given a fragment map, formats it and concatenates to string,
raw docstring

graphql-queryclj/s

(graphql-query data)

Formats clojure data structure to valid graphql query string.

Formats clojure data structure to valid graphql query string.
raw docstring

include-fields?clj/s

(include-fields? fields)

Include fields if fields is not empty or is a keyword. fields could be nil or empty for operations that return a scalar.

Include fields if fields is not empty or is a keyword.
fields could be nil or empty for operations that return a scalar.
raw docstring

meta-field->strclj/s

(meta-field->str meta-field)

Converts namespaced meta field keyword to graphql format, e.g :meta/typename -> __typename

Converts namespaced meta field keyword to graphql format, e.g :meta/typename -> __typename
raw docstring

sequential->strclj/s

(sequential->str arg)

Given something that is sequential format it to be like a JSON array.

Given something that is sequential format it to be like a JSON array.
raw docstring

variables->strclj/s

(variables->str variables)

Given a vector of variable maps, formats them and concatenates to string.

E.g. (variables->str [{:variable/name "id" :variable/type :Int}]) => "$id: Int"

Given a vector of variable maps, formats them and concatenates to string.

E.g. (variables->str [{:variable/name "id" :variable/type :Int}]) => "$id: Int"
raw docstring

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

× close