Admin API / Queries
collections
Every collection, hidden and livestream collections included. query matches displayName, case-insensitive, by substring or close spelling. Without sort, the closest match to query comes first; without query too, the order is POSITION ascending. Ties sort by relevance when query is set, then by position, then by ID. first outside 1 to 100 or a malformed after gives a thrown VALIDATION_ERROR. Paging stops at offset 1,000 (1,000,000 for Soho): an after at the ceiling gives a thrown PAGE_OUT_OF_RANGE; narrow where or query to reach other rows.
Requires a client key with one of these scopes:
admin:collections:readRequires this member role or higher: SELLERcollections(
after: String
first: Int
query: String
sort: CollectionSortInput
where: CollectionWhereInput
): CollectionConnection!Arguments
| Argument | Type | Description |
|---|---|---|
after | String | Return items after this cursor. Omit for the first page. |
first | Int | Maximum number of items to return. Defaults to 20, capped at 100 (10,000 for Soho). |
query | String | Text to find in displayName. Empty or blank matches every collection. |
sort | CollectionSortInput | Sort order. The field description gives the default and the ties. |
where | CollectionWhereInput | Filters to narrow the list. |