Skip to main content

gqlInputObjectType

Adds a new input object to the schema. See example usage.

Until this bug is fixed, custom input objects need to be defined in a separate file from where they're consumed.

Options:

  • name

Name of the input object. If not specified, defaults to the name of the class.

  • description

Description of the input object. Will be added to the Schema and exposed in tools like GraphiQL or Playground.