For a specific business, fetches the first page of product/service data.
Retrieve the first 50
records. See Pagination for an explanation of page
and pageSize
.
Replace <BUSINESS_ID>
with a real business id .
- Operation
-
query ($businessId: ID!, $page: Int!, $pageSize: Int!) { business(id: $businessId) { id products(page: $page, pageSize: $pageSize) { pageInfo { currentPage totalPages totalCount } edges { node { id name description unitPrice defaultSalesTaxes { id name abbreviation rate } isSold isBought isArchived createdAt modifiedAt } } } } }
- Operation Variables
-
{ "businessId": "<BUSINESS_ID>", "page": 1, "pageSize": 50 }