View Source AbsintheQueryAll.Query (absinthe_query_all v0.2.2)

Code for generating a query string for a particular operation that requests every possible piece of data that is available in the response.

Summary

Functions

Generates a query string that requests every possible field and subfield.

Functions

Link to this function

comprehensive(config, options \\ [])

View Source

Generates a query string that requests every possible field and subfield.

Examples

iex> comprehensive(%{
...>   operation_type: :query,
...>   operation_name: :someQuery,
...>   schema: SomeAbsintheSchema
...> })
"query someQuery {

someQuery { someField: someField someOtherField: someOtherField } } "