---
title: inputObjectType
codeStyle: true
---

## inputObjectType

[GraphQL Docs for Input Object Types](https://graphql.org/learn/schema/#input-types)

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

```ts
export const InputType = inputObjectType({
  name: 'InputType',
  definition(t) {
    t.nonNull.string('key')
    t.int('answer')
  },
})
```

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