API

inputObjectType


inputObjectType

GraphQL Docs for Input Object Types

Defines a complex object which can be passed as an input value.

1export const InputType = inputObjectType({
2 name: 'InputType',
3 definition(t) {
4 t.string('key', { required: true })
5 t.int('answer')
6 },
7})

Unlike object types, input types do not have arguments, so they do not have resolvers or "backing types"

Edit this page on Github