View Source AbsintheQueryAll.Introspect (absinthe_query_all v0.1.1)

Summary

Functions

Queries the provided GraphQL schema for every possible data type.

Functions

Link to this function

get_all_types(schema, include_deprecated \\ false)

View Source
@spec get_all_types(Absinthe.Schema.t(), boolean()) :: [
  AbsintheQueryAll.Query.Type.t()
]

Queries the provided GraphQL schema for every possible data type.

Examples

iex> get_all_types(SomeGraphqlSchema)
[
  %{name: :SomeGraphqlType, description: nil, fields: [...], ...},
  %{name: :SomeOtherGraphqlType, description: nil, fields: [...], ...},
  %{name: :SomeThirdGraphqlType, description: nil, fields: [...], ...}
]