Suppliers
suppliers Query
Returns a paginated list of Supplier 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
SupplierOrder
Ordering options for Suppliers returned from the connection
where
SupplierWhereInput
Filtering options for Suppliers returned from the connection
Return Type
SupplierConnection! - A connection to a list of Supplier objects with pagination information.
Usage Example
query {
# Search suppliers by name in custom data
suppliers(
where: {
DataContains: ["ACME"]
},
orderBy: { field: CREATED_AT, direction: DESC }
) {
edges {
node {
id
data
dataTypeSlug
createdAt
}
}
totalCount
}
}Common Filters
DataContains- Search within custom data fieldsDataHasKey- Filter by presence of specific data keysdataTypeSlug- Filter by supplier typecreatedAt_GTE/createdAt_LTE- Filter by date range
For detailed information on querying JSON data fields, see the Advanced JSON Field Queries guide.
Notes
Suppliers are master data entities for vendor management
Custom supplier attributes are stored in the
datafieldUse data type slugs to categorize different supplier types
The
DataContainsfilter searches within the JSON data field
Last updated
Was this helpful?
