Absinthe.Type.NonNull (absinthe v1.6.4) View Source
A type that wraps an underlying type, acting identically to that type but adding a non-null constraint.
By default, all types in GraphQL are nullable. To declare a type that
disallows null, wrap it in a Absinthe.Type.NonNull
struct.
Examples
Given a type, :item
, to declare it as non-null, you could do the following:
type: %Absinthe.Type.NonNull{of_type: :item}
But normally this would be done using Absinthe.Schema.Notation.non_null/1
.
type: non_null(:item)
Link to this section Summary
Functions
Callback implementation for c:Absinthe.Introspection.TypeKind.kind/0
.
Link to this section Types
Link to this section Functions
Callback implementation for c:Absinthe.Introspection.TypeKind.kind/0
.