queryCollections( )


Retrieves a list of up to 100 collections, given the provided paging, sorting and filtering. See Stores Pagination for more information.

PROPERTYSUPPORTED FILTERS & SORTING
_ideq(),ne(),exists(),in(),hasSome(),startsWith(),ascending(),descending()
nameeq(),ne(),exists(),in(),hasSome(),startsWith(),ascending(),descending()
Method Declaration
Copy
function queryCollections(): CollectionsQueryBuilder;
Request
This method does not take any parameters
Returns
JavaScript
import { collections } from "@wix/stores"; async function queryCollections() { const { items } = await collections.queryCollections().find(); }
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?