Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

CustomerWhereInput Input Type

input CustomerWhereInput {
  metadata: MetadataFilterInput
  ids: [ID!]
  email: StringFilterInput
  firstName: StringFilterInput
  lastName: StringFilterInput
  isActive: Boolean
  dateJoined: DateTimeRangeInput
  updatedAt: DateTimeRangeInput
  placedOrdersAt: DateTimeRangeInput
  addresses: AddressFilterInput
  numberOfOrders: IntFilterInput
  customerType: GlobalIDFilterInput
  attributes: [AssignedAttributeWhereInput!]
  AND: [CustomerWhereInput!]
  OR: [CustomerWhereInput!]
}

Fields

metadata

metadata · MetadataFilterInput

Filter by metadata fields.

ids

ids · [ID!]

email

email · StringFilterInput

Filter by email address.

firstName

firstName · StringFilterInput

Filter by first name.

lastName

lastName · StringFilterInput

Filter by last name.

isActive

isActive · Boolean

Filter by whether the user is active.

dateJoined

dateJoined · DateTimeRangeInput

Filter by date joined.

updatedAt

updatedAt · DateTimeRangeInput

Filter by last updated date.

placedOrdersAt

placedOrdersAt · DateTimeRangeInput

Filter by date when orders were placed.

addresses

addresses · AddressFilterInput

Filter by addresses data associated with user.

numberOfOrders

numberOfOrders · IntFilterInput

Filter by number of orders placed by the user.

customerType

customerType · GlobalIDFilterInput

Filter by customer type. Filtering by the default customer type also matches users without an explicitly assigned customer type.

Added in Saleor 3.23

attributes

attributes · [AssignedAttributeWhereInput!]

Filter by attributes associated with the customer.

Added in Saleor 3.23

AND

AND · [CustomerWhereInput!]

List of conditions that must be met.

OR

OR · [CustomerWhereInput!]

A list of conditions of which at least one must be met.

Used by


Schema: Saleor 3.23.43. Download SDL.

Last updated on August 10, 2026

Was this page helpful?