Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering. See Stores Pagination for more information.
PROPERTY | SUPPORTED FILTERS & SORTING |
---|---|
_id | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
name | eq() ,ne() ,exists() ,in() ,hasSome() ,startsWith() ,ascending() ,descending() |
function queryCollections(): CollectionsQueryBuilder;
import { collections } from "@wix/stores";
async function queryCollections() {
const { items } = await collections.queryCollections().find();
}
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.