Velo: Wix Stores "Collections" Collection Fields

Tip: Before continuing, make sure you've read Working with Wix App Collections.

To use the Collections collection in code, refer to it as "Stores/Collections".

Copy
1
wixData.query("Stores/Collections")
2
.find()
3
.then( (results) => {
4
// handle the results
5
} );

This document describes the permissions and fields in your Collections collection.

Important:

  • You can query up to 100 items from the Collections collection. Trying to query more than 100 items by raising the wix-data limit will result in an error.

Permissions

The Collections collection has the following permissions:

  • Read: Anyone 
  • Create: None
  • Update: None
  • Delete: None

You cannot change the Collections collection's permissions. 

Fields

Note: This app collection contains read-only fields that cannot be managed from the collection. You can update the fields from the relevant app in your site’s dashboard.

The field name is listed as the heading of each section, with the field ID listed in parentheses, like this: Name (name). The fields appear in this document in the order in which they appear in your collection by default.

ID (_id)

Description: The collection ID that was created by the server. This is a system field and is hidden by default. This information also appears in the Products collection in a hidden field called "collections.id". You can copy the ID from here and then use it to query the Products collection by the collection ID.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: Yes

Can be sorted: Yes

Can be filtered: Yes

Read-only: Yes

Name (name)

Description: The name of the collection.

Type: Text

Can connect to data: Yes

Can use in dynamic page URL: Yes

Can be sorted: Yes   Can be filtered: Yes

Read-only: Yes

Main Media (mainMedia)

Description: Displays the main media item (image or video) for this collection as it appears in the Store Manager.

Type: Image

Can connect to data: Yes

Can use in dynamic page URL: No

Can be sorted: No

Can be filtered: No

Read-only: Yes

Was this helpful?
Yes
No