absinthe v1.1.5 Absinthe.Type.InputObject
Defines a GraphQL input object
Input objects enable nested arguments to queries and mutations.
Example
mutation do
field :user, :user do
arg :name, :string
arg :contact, non_null(:contact)
resolve &User.create/2
end
end
input_object :contact do
field :email, :string
end
This supports the following mutation
:
mutation CreateUser {
user(contact: {email: "foo@bar.com"}) {
id
}
}
Summary
Functions
Callback implementation for c:Absinthe.Introspection.Kind.kind/0
Types
t :: %{name: binary, description: binary, fields: map | (() -> map), __reference__: Absinthe.Type.Reference.t}