ZapytanieBetaQuery.matrices
Matrices in the warehouse, one page at a time, with the total count; archived ones only on request (isArchived) or when syncing. Filter and sort them; with updatedFrom and the UPDATED_AT sort, fetch only matrices changed since your last sync.
| Wymagany zakres | warehouse:read |
|---|---|
| Dostępne od | Prynt 0.28.0 |
| Stabilność | Beta (co to znaczy) |
Argumenty
| Nazwa | Typ | Opis |
|---|---|---|
filter | MatrixFilterInput | Conditions the matrices must meet; without it every matrix is listed. |
pagination | PaginationInput | Page of the list to return; without it the first page at the default size. |
sort | MatrixSortInput | Order of the list; without it newest first. |
Zwraca
Przykład
query Matrices { matrices(sort: { field: CODE, direction: ASC }, pagination: { page: 1, pageSize: 50 }) { totalCount items { id code name matrixType material editionCount archivedAt } }}curl -sS https://twoja-drukarnia.prynt.pl/api/v1/graphql \ -H "Authorization: Bearer $PRYNT_API_KEY" \ -H "Content-Type: application/json" \ --data-binary @- <<'JSON'{ "query": "query Matrices {\n matrices(sort: { field: CODE, direction: ASC }, pagination: { page: 1, pageSize: 50 }) {\n totalCount\n items {\n id\n code\n name\n matrixType\n material\n editionCount\n archivedAt\n }\n }\n}"}JSON{ "data": { "matrices": { "totalCount": 1, "items": [ { "id": "3f6b2a1c-8d4e-4f5a-9b6c-1d2e3f4a5b05", "code": "MT12", "name": "Logo Lipowe tłoczenie", "matrixType": "EMBOSSING", "material": "BRASS", "editionCount": 3, "archivedAt": null } ] } }}