Input Types

Input types are a core concept in GraphQL, responsible for passing instructions to mutation and query statements.

Base Input types

WhereInput

The WhereInput is used extensively in our system. WhereInputs are used for selecting multiple entries of a model. In additional to model specific fields, every WhereInput supports:

_search: String
A string value that searches all fields in a model.

{
product(where: { _search: "ACME" }) {
name
}
}

AND: [WhereInput!] Logical AND on all given filters filter for chaining more than one WhereInput - both must be true.

{
products(where: { AND: [{ _search: "ACME" }, { quantity_gt: 50 }] }) {
name
id
quantity
}
}

OR: [WhereInput!] Logical OR on all given filters. Either can be true.

{
products(where: { OR: [{ _search: "ACME" }, { quantity_gt: 100 }] }) {
name
id
quantity
}
}

NOT: [WhereInput!] Logical NOT on all given filters. All given filters must return false.

{
products(where: { NOT: [{ _search: "ACME" }, { quantity_gt: 50 }] }) {
name
id
quantity
}
}

id: ID For all the supported filter permutations of ID, please see the ID field docs.

createdAt: DateTime For all the supported filter permutations of createdAt, please see the DateTime field docs.

updatedAt: DateTime For all the supported filter permutations of updatedAt, please see the DateTime field docs.

WhereUniqueInput

WhereUniqueInput is used to select singular entries from the model. Any field marked unique in the schema works for unique input. Id is a system field that will always be unique.

{
product(where: { id: "123xyz" }) {
id
}
}

ColorInput

Documentation coming soon, use the Playground Docs to learn more.

ConnectInput

Documentation coming soon, use the Playground Docs to learn more.

ConnectPositionInput

Documentation coming soon, use the Playground Docs to learn more.

CreateInput

Documentation coming soon, use the Playground Docs to learn more.

CreateLocalizationDataInput

Documentation coming soon, use the Playground Docs to learn more.

CreateLocalizationsInput

Documentation coming soon, use the Playground Docs to learn more.

CreateManyInlineInput

Documentation coming soon, use the Playground Docs to learn more.

CreateOneInlineInput

Documentation coming soon, use the Playground Docs to learn more.

DocumentOutputInput

Documentation coming soon, use the Playground Docs to learn more.

DocumentTransformationInput

Documentation coming soon, use the Playground Docs to learn more.

ImageResizeInput

Documentation coming soon, use the Playground Docs to learn more.

ImageTransformationInput

Documentation coming soon, use the Playground Docs to learn more.

LocationInput

Documentation coming soon, use the Playground Docs to learn more.

OrderByInput

Documentation coming soon, use the Playground Docs to learn more.

RGBAInput

Documentation coming soon, use the Playground Docs to learn more.

TransformationInput

Documentation coming soon, use the Playground Docs to learn more.

UpdateInput

Documentation coming soon, use the Playground Docs to learn more.

UpdateManyInlineInput

Documentation coming soon, use the Playground Docs to learn more.

UpdateManyInput

Documentation coming soon, use the Playground Docs to learn more.

UpdateManyWithNestedWhereInput

Documentation coming soon, use the Playground Docs to learn more.

UpdateOneInlineInput

Documentation coming soon, use the Playground Docs to learn more.

UpdateWithNestedWhereUniqueInput

Documentation coming soon, use the Playground Docs to learn more.

UpsertInput

Documentation coming soon, use the Playground Docs to learn more.

UpsertWithNestedWhereUniqueInput

Documentation coming soon, use the Playground Docs to learn more.

This site uses cookies to provide you with a better user experience. For more information, refer to our Privacy Policy