inventorySuppliers Query
Description
Retrieves a paginated list of suppliers associated with inventory items, with optional search filtering.
query inventorySuppliers($page: Int!, $limit: Int, $term: String) {
inventorySuppliers(page: $page, limit: $limit, term: $term) {
suppliers {
_id
createdAt
modifiedAt
name
taxInformation
}
pagination {
limit
count
page
pages
hasMore
}
}
}
Variables
{
"page": 1,
"limit": 20,
"term": "term"
}
Response
{
"inventorySuppliers": {
"suppliers": [
{
"_id": "0ec67847e3653bac9f025082",
"createdAt": 1763989604433,
"modifiedAt": 1710808698001,
"name": "example",
"taxInformation": "example"
}
],
"pagination": {
"limit": 20,
"count": 10,
"page": 1,
"pages": 1,
"hasMore": true
}
}
}
Arguments
| Name | Type | Description |
|---|---|---|
page | Int! | The requested page number. Defaults to 1 if not specified. |
limit | Int | Number of suppliers per page. You can request a specific page size, and it will be used if it does not exceed the server-enforced maximum. If your requested size exceeds the maximum, the server will enforce the maximum limit. |
term | String | Search term to filter suppliers by name. |