GraphQL v0.2.0 GraphQL.Type.Interface

Summary

Functions

Unlike Union, Interfaces don’t explicitly declare what Types implement them, so we have to iterate over a full typemap and filter the Types in the Schema down to just those that implement the provided interface

Types

t :: %GraphQL.Type.Interface{description: binary | nil, fields: Map.t, name: binary, resolver: (any -> GraphQL.Type.ObjectType.t) | nil}

Functions

new(map)
possible_types(interface, schema)

Unlike Union, Interfaces don’t explicitly declare what Types implement them, so we have to iterate over a full typemap and filter the Types in the Schema down to just those that implement the provided interface.