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
@spec get_all_types(Absinthe.Schema.t(), boolean()) :: [ AbsintheQueryAll.Query.Types.type_data() ]
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: [...], ...}
]