Customers
Customers Query
Returns a paginated list of Customer objects, with optional filtering and ordering.
Arguments
after
Cursor
Returns the elements in the list that come after the specified cursor
first
Int
Returns the first n elements from the list
before
Cursor
Returns the elements in the list that come before the specified cursor
last
Int
Returns the last n elements from the list
orderBy
CustomerOrder
Ordering options for customers returned from the connection
where
CustomerWhereInput
Filtering options for customers returned from the connection
Return Type
CustomerConnection! - A connection to a list of Customer objects with pagination information.
Notes
The
datafield contains custom attributes as JSONUse
Data,DataHasKey,DataIn, andDataContainsfilters for querying JSON dataSee Advanced JSON Field Queries for detailed JSON query examples
Usage Example
Common Filters
name_CONTAINS- Search by customer namecode- Find by exact customer codeemail- Find by email addressdataTypeSlug- Filter by customer typepickingOrders_SOME- Filter by order criteria
Notes
Customers are linked to picking orders
Support custom fields through data/dataType
Can represent both individuals and organizations
Use virtual repositories named after customers for shipping
Last updated
Was this helpful?
