Liking cljdoc? Tell your friends :D

prismatic-graphql.core


default-optionsclj

source

EnumBuilderclj

sourceraw docstring

query->data-schemaclj

(query->data-schema schema-string query-string)
(query->data-schema schema-string query-string options)

Inputs: ([schema-string :- s/Str query-string :- s/Str] [schema-string :- s/Str query-string :- s/Str options :- Options]) Returns: Schema

Receives a string containing a GraphQL Schema in SDL and a GraphQL Query String and returns the Prismatic Schema of the data response when executing the passed query against the provided schema. An optional options argument can be provided with the following options:

<:scalars> - A map containing the Keyword representation of a custom GraphQL Scalar and the corresponding Prismatic Schema type to be used. (this is required if your schema contains custom Scalars, they are going to be merged with the default ones)

<:enum-fn> - A function that receives a set and should return a Prismatic Schema representing an enum made of the elements present in the set provided. By default this uses the s/enum from Prismatic, can be used to provide a loose-enum implementation.

<:loose?> - Allows for extra keys in the generated schemas

Inputs: ([schema-string :- s/Str query-string :- s/Str] [schema-string :- s/Str query-string :- s/Str options :- Options])
Returns: Schema

Receives a string containing a GraphQL Schema in SDL and a GraphQL Query String and returns the Prismatic Schema of the
 data response when executing the passed query against the provided schema. An optional `options` argument can be provided
 with the following options:

 <:scalars> - A map containing the Keyword representation of a custom GraphQL Scalar and the corresponding Prismatic Schema
  type to be used. (this is required if your schema contains custom Scalars, they are going to be merged with the default ones)

 <:enum-fn> - A function that receives a set and should return a Prismatic Schema representing an enum made of the elements
  present in the set provided. By default this uses the `s/enum` from Prismatic, can be used to provide a loose-enum implementation.

 <:loose?> - Allows for extra keys in the generated schemas
sourceraw docstring

query->variables-schemaclj

(query->variables-schema schema-string query-string)
(query->variables-schema schema-string query-string options)

Inputs: ([schema-string :- s/Str query-string :- s/Str] [schema-string :- s/Str query-string :- s/Str options :- Options]) Returns: Schema

Receives a string containing a GraphQL Schema in SDL and a GraphQL Query String and returns the Prismatic Schema of the variables required when executing the passed query against the provided schema. An optional options argument can be provided with the following options:

<:scalars> - A map containing the Keyword representation of a custom GraphQL Scalar and the corresponding Prismatic Schema type to be used. (this is required if your schema contains custom Scalars, they are going to be merged with the default ones)

<:enum-fn> - A function that receives a set and should return a Prismatic Schema representing an enum made of the elements present in the set provided. By default this uses the s/enum from Prismatic, can be used to provide a loose-enum implementation.

<:loose?> - Allows for extra keys in the generated schemas

Inputs: ([schema-string :- s/Str query-string :- s/Str] [schema-string :- s/Str query-string :- s/Str options :- Options])
Returns: Schema

Receives a string containing a GraphQL Schema in SDL and a GraphQL Query String and returns the Prismatic Schema of the
 variables required when executing the passed query against the provided schema. An optional `options` argument can be provided
 with the following options:

 <:scalars> - A map containing the Keyword representation of a custom GraphQL Scalar and the corresponding Prismatic Schema
  type to be used. (this is required if your schema contains custom Scalars, they are going to be merged with the default ones)

 <:enum-fn> - A function that receives a set and should return a Prismatic Schema representing an enum made of the elements
  present in the set provided. By default this uses the `s/enum` from Prismatic, can be used to provide a loose-enum implementation.

 <:loose?> - Allows for extra keys in the generated schemas
sourceraw docstring

reduce-schemaclj

source

ScalarMappingclj

sourceraw docstring

valid-query?clj

(valid-query? query-string)

Inputs: [query-string :- s/Str] Returns: s/Bool

Returns true if the query-string is a syntactically correct GraphQL Query document, false otherwise. (this does no check if the query is compliant to a specific schema)

Inputs: [query-string :- s/Str]
Returns: s/Bool

Returns true if the query-string is a syntactically correct GraphQL Query document, false otherwise. (this does no check if the query is compliant to a specific schema)
sourceraw docstring

valid-schema?clj

(valid-schema? schema-string)

Inputs: [schema-string :- s/Str] Returns: s/Bool

Returns true if the schema-string is a valid GraphQL Schema, false otherwise

Inputs: [schema-string :- s/Str]
Returns: s/Bool

Returns true if the schema-string is a valid GraphQL Schema, false otherwise
sourceraw docstring

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

× close