Przejdź do głównej zawartości

matrices

Dla: Programista

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 zakreswarehouse:read
Dostępne odPrynt 0.28.0
StabilnośćBeta (co to znaczy)

Argumenty

NazwaTypOpis
filterMatrixFilterInput

Conditions the matrices must meet; without it every matrix is listed.

paginationPaginationInput

Page of the list to return; without it the first page at the default size.

sortMatrixSortInput

Order of the list; without it newest first.

Zwraca

MatricesResult!

Przykład

Zapytanie
query Matrices {
matrices(sort: { field: CODE, direction: ASC }, pagination: { page: 1, pageSize: 50 }) {
totalCount
items {
id
code
name
matrixType
material
editionCount
archivedAt
}
}
}
Wywołanie (curl)
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
Odpowiedź
{
"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
}
]
}
}
}