Skip to main content

Input Objects

AuthenticationInput​

input AuthenticationInput{
}

BooleanListOperators​

"""
Operators for filtering on a list of Boolean fields
"""
input BooleanListOperators{
inList: Boolean!
}

BooleanOperators​

"""
Operators for filtering on a Boolean field
"""
input BooleanOperators{
isNull: Boolean
}

CollectionFilterParameter​

input CollectionFilterParameter{
createdAt: DateOperators
updatedAt: DateOperators
languageCode: StringOperators
position: NumberOperators
description: StringOperators
parentId: IDOperators
}

CollectionListOptions​

input CollectionListOptions{
topLevelOnly: Boolean
"""
Skips the first n results, for use in pagination
"""
skip: Int
"""
Takes n results, for use in pagination
"""
take: Int
"""
Specifies which properties to sort the results by
"""
"""
Allows the results to be filtered
"""
"""
Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND.
"""
filterOperator: LogicalOperator
}

CollectionSortParameter​

input CollectionSortParameter{
createdAt: SortOrder
updatedAt: SortOrder
name: SortOrder
slug: SortOrder
position: SortOrder
description: SortOrder
parentId: SortOrder
}

ConfigArgInput​

input ConfigArgInput{
name: String!
"""
A JSON stringified representation of the actual value
"""
value: String!
}

ConfigurableOperationInput​

input ConfigurableOperationInput{
code: String!
arguments: [ConfigArgInput!]!
}

CreateAddressInput​

input CreateAddressInput{
fullName: String
company: String
streetLine1: String!
streetLine2: String
city: String
province: String
postalCode: String
countryCode: String!
phoneNumber: String
defaultShippingAddress: Boolean
defaultBillingAddress: Boolean
customFields: JSON
}

CreateCustomerInput​

input CreateCustomerInput{
title: String
firstName: String!
lastName: String!
phoneNumber: String
emailAddress: String!
customFields: JSON
}

CustomerFilterParameter​

input CustomerFilterParameter{
createdAt: DateOperators
updatedAt: DateOperators
firstName: StringOperators
lastName: StringOperators
phoneNumber: StringOperators
emailAddress: StringOperators
}

CustomerListOptions​

input CustomerListOptions{
"""
Skips the first n results, for use in pagination
"""
skip: Int
"""
Takes n results, for use in pagination
"""
take: Int
"""
Specifies which properties to sort the results by
"""
"""
Allows the results to be filtered
"""
"""
Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND.
"""
filterOperator: LogicalOperator
}

CustomerSortParameter​

input CustomerSortParameter{
createdAt: SortOrder
updatedAt: SortOrder
title: SortOrder
firstName: SortOrder
lastName: SortOrder
phoneNumber: SortOrder
emailAddress: SortOrder
}

DateListOperators​

"""
Operators for filtering on a list of Date fields
"""
input DateListOperators{
inList: DateTime!
}

DateOperators​

"""
Operators for filtering on a DateTime field
"""
input DateOperators{
before: DateTime
after: DateTime
between: DateRange
isNull: Boolean
}

DateRange​

input DateRange{
start: DateTime!
end: DateTime!
}

FacetFilterParameter​

input FacetFilterParameter{
createdAt: DateOperators
updatedAt: DateOperators
languageCode: StringOperators
}

FacetListOptions​

input FacetListOptions{
"""
Skips the first n results, for use in pagination
"""
skip: Int
"""
Takes n results, for use in pagination
"""
take: Int
"""
Specifies which properties to sort the results by
"""
"""
Allows the results to be filtered
"""
"""
Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND.
"""
filterOperator: LogicalOperator
}

FacetSortParameter​

input FacetSortParameter{
createdAt: SortOrder
updatedAt: SortOrder
name: SortOrder
code: SortOrder
}

FacetValueFilterInput​

"""
Used to construct boolean expressions for filtering search results
by FacetValue ID. Examples:
* ID=1 OR ID=2: `{ facetValueFilters: [{ or: [1,2] }] }`
* ID=1 AND ID=2: `{ facetValueFilters: [{ and: 1 }, { and: 2 }] }`
* ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }`
"""
input FacetValueFilterInput{
and: ID
or: [ID!]
}

HistoryEntryFilterParameter​

input HistoryEntryFilterParameter{
createdAt: DateOperators
updatedAt: DateOperators
}

HistoryEntryListOptions​

input HistoryEntryListOptions{
"""
Skips the first n results, for use in pagination
"""
skip: Int
"""
Takes n results, for use in pagination
"""
take: Int
"""
Specifies which properties to sort the results by
"""
"""
Allows the results to be filtered
"""
"""
Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND.
"""
filterOperator: LogicalOperator
}

HistoryEntrySortParameter​

input HistoryEntrySortParameter{
createdAt: SortOrder
updatedAt: SortOrder
}

IDListOperators​

"""
Operators for filtering on a list of ID fields
"""
input IDListOperators{
inList: ID!
}

IDOperators​

"""
Operators for filtering on an ID field
"""
input IDOperators{
eq: String
notEq: String
in: [String!]
notIn: [String!]
isNull: Boolean
}

NativeAuthInput​

input NativeAuthInput{
username: String!
password: String!
}

NumberListOperators​

"""
Operators for filtering on a list of Number fields
"""
input NumberListOperators{
inList: Float!
}

NumberOperators​

"""
Operators for filtering on a Int or Float field
"""
input NumberOperators{
eq: Float
lt: Float
lte: Float
gt: Float
gte: Float
between: NumberRange
isNull: Boolean
}

NumberRange​

input NumberRange{
start: Float!
end: Float!
}

OrderFilterParameter​

input OrderFilterParameter{
createdAt: DateOperators
updatedAt: DateOperators
orderPlacedAt: DateOperators
totalQuantity: NumberOperators
subTotal: NumberOperators
subTotalWithTax: NumberOperators
currencyCode: StringOperators
shipping: NumberOperators
shippingWithTax: NumberOperators
totalWithTax: NumberOperators
}

OrderListOptions​

input OrderListOptions{
"""
Skips the first n results, for use in pagination
"""
skip: Int
"""
Takes n results, for use in pagination
"""
take: Int
"""
Specifies which properties to sort the results by
"""
"""
Allows the results to be filtered
"""
"""
Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND.
"""
filterOperator: LogicalOperator
}

OrderSortParameter​

input OrderSortParameter{
createdAt: SortOrder
updatedAt: SortOrder
orderPlacedAt: SortOrder
code: SortOrder
state: SortOrder
totalQuantity: SortOrder
subTotal: SortOrder
subTotalWithTax: SortOrder
shipping: SortOrder
shippingWithTax: SortOrder
total: SortOrder
totalWithTax: SortOrder
}

PaymentInput​

"""
Passed as input to the addPaymentToOrder mutation.
"""
input PaymentInput{
"""
This field should correspond to the code property of a PaymentMethod.
"""
method: String!
"""
This field should contain arbitrary data passed to the specified PaymentMethodHandler's createPayment() method
as the "metadata" argument. For example, it could contain an ID for the payment and other
data generated by the payment provider.
"""
metadata: JSON!
}

ProductFilterParameter​

input ProductFilterParameter{
createdAt: DateOperators
updatedAt: DateOperators
languageCode: StringOperators
description: StringOperators
}

ProductListOptions​

input ProductListOptions{
"""
Skips the first n results, for use in pagination
"""
skip: Int
"""
Takes n results, for use in pagination
"""
take: Int
"""
Specifies which properties to sort the results by
"""
"""
Allows the results to be filtered
"""
"""
Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND.
"""
filterOperator: LogicalOperator
}

ProductSortParameter​

input ProductSortParameter{
createdAt: SortOrder
updatedAt: SortOrder
name: SortOrder
slug: SortOrder
description: SortOrder
}

ProductVariantFilterParameter​

input ProductVariantFilterParameter{
productId: IDOperators
createdAt: DateOperators
updatedAt: DateOperators
languageCode: StringOperators
currencyCode: StringOperators
priceWithTax: NumberOperators
stockLevel: StringOperators
}

ProductVariantListOptions​

input ProductVariantListOptions{
"""
Skips the first n results, for use in pagination
"""
skip: Int
"""
Takes n results, for use in pagination
"""
take: Int
"""
Specifies which properties to sort the results by
"""
"""
Allows the results to be filtered
"""
"""
Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND.
"""
filterOperator: LogicalOperator
}

ProductVariantSortParameter​

input ProductVariantSortParameter{
productId: SortOrder
createdAt: SortOrder
updatedAt: SortOrder
name: SortOrder
price: SortOrder
priceWithTax: SortOrder
stockLevel: SortOrder
}

RegisterCustomerInput​

input RegisterCustomerInput{
emailAddress: String!
title: String
firstName: String
lastName: String
phoneNumber: String
password: String
}

SearchInput​

input SearchInput{
term: String
facetValueIds: [ID!]
facetValueOperator: LogicalOperator
facetValueFilters: [FacetValueFilterInput!]
collectionId: ID
collectionSlug: String
groupByProduct: Boolean
take: Int
skip: Int
}

SearchResultSortParameter​

input SearchResultSortParameter{
name: SortOrder
price: SortOrder
}

StringListOperators​

"""
Operators for filtering on a list of String fields
"""
input StringListOperators{
inList: String!
}

StringOperators​

"""
Operators for filtering on a String field
"""
input StringOperators{
eq: String
notEq: String
contains: String
notContains: String
in: [String!]
notIn: [String!]
regex: String
isNull: Boolean
}

UpdateAddressInput​

input UpdateAddressInput{
id: ID!
fullName: String
company: String
streetLine1: String
streetLine2: String
city: String
province: String
postalCode: String
countryCode: String
phoneNumber: String
defaultShippingAddress: Boolean
defaultBillingAddress: Boolean
customFields: JSON
}

UpdateCustomerInput​

input UpdateCustomerInput{
title: String
firstName: String
lastName: String
phoneNumber: String
customFields: JSON
}

UpdateOrderInput​

input UpdateOrderInput{
customFields: JSON
}