View Source AbsintheQueryAll.Introspect (absinthe_query_all v0.5.0)

Code for getting a complete list of all of the data types in a GraphQL schema.

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

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: [...], ...}
]