View Source AbsintheQueryAll.Query (absinthe_query_all v0.1.1)

Summary

Functions

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

Functions

Link to this function

comprehensive(map, options \\ [])

View Source
@spec comprehensive(
  %{
    operation_type: AbsintheQueryAll.Query.Operation.t(),
    operation_name: atom(),
    schema: Absinthe.Schema.t()
  },
  [atom()]
) :: binary()

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 } } "