Inventory__collection
Only collection that the user has access to will be returned. Requires a signed-in staff user. Needs the `inventory__Collection` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).
inventory__collection(where: CommonFindDocumentDto!): Collection!Only collection that the user has access to will be returned. Requires a signed-in staff user. Needs the inventory__Collection read permission. Send the x-tenant header (the gateway sets it from your API key).
Arguments
where*Returns
- inventory__collection
_id*ID!children?Child subcollections (populated via virtual)
commits?createdAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
description?StringisDemo?Booleanlevel?IntDepth level in the hierarchy
logo?name?StringparentCategory?IDParent collection ID for subcollection hierarchy
slug?StringURL handle used in storefront links (/collections/{slug})
sortOrder?IntPosition among sibling collections (ascending). Ties sort by name.
tenant?StringupdatedAt?DateTimeA date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
query Inventory__collection($where: CommonFindDocumentDto!) { inventory__collection(where: $where) { _id children { _id children { _id createdAt description isDemo level name parentCategory slug } commits { action committedAt note } createdAt description isDemo level name parentCategory slug } commits { action commitedBy { email name phoneNumber referenceId } committedAt note } createdAt description isDemo level name parentCategory slug }}{ "where": { "and": [ { "and": [ { "and": [ { "and": [ {} ], "key": "string" } ], "key": "string" } ], "key": "string" } ], "key": "string" }}{ "data": { "inventory__collection": { "_id": "1", "children": [ { "_id": "1", "children": [ { "_id": "1", "createdAt": "<DateTime>", "description": "string", "isDemo": true, "level": 10, "name": "string", "parentCategory": "1", "slug": "string" } ], "commits": [ { "action": "string", "committedAt": "<DateTime>", "note": "string" } ], "createdAt": "<DateTime>", "description": "string", "isDemo": true, "level": 10, "name": "string", "parentCategory": "1", "slug": "string" } ], "commits": [ { "action": "string", "commitedBy": { "email": "string", "name": "string", "phoneNumber": "string", "referenceId": "1" }, "committedAt": "<DateTime>", "note": "string" } ], "createdAt": "<DateTime>", "description": "string", "isDemo": true, "level": 10, "name": "string", "parentCategory": "1", "slug": "string" } }}Identity__visible User Notices QUERY
Requires a signed-in staff user.
Inventory__collections QUERY
Only collections that the user has access to will be returned. Requires a signed-in staff user. Needs the `inventory__Collection` `read` permission. Send the `x-tenant` header (the gateway sets it from your API key).