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: SELLER
collections(
  after: String
  first: Int
  query: String
  sort: CollectionSortInput
  where: CollectionWhereInput
): CollectionConnection!

Arguments

ArgumentTypeDescription
afterStringReturn items after this cursor. Omit for the first page.
firstIntMaximum number of items to return. Defaults to 20, capped at 100 (10,000 for Soho).
queryStringText to find in displayName. Empty or blank matches every collection.
sortCollectionSortInputSort order. The field description gives the default and the ties.
whereCollectionWhereInputFilters to narrow the list.

Return type

CollectionConnection!