Note: This collection contains read-write 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 "Portfolio/Collections"
.
wixData
.query("Portfolio/Collections")
.find()
.then((results) => {
// handle the results
});
This document describes the permissions and fields in your Collections collection.
Important: Trying to query more than 100 items exceeds the wix-data limit and results in an error.
The Collections collection has the following permissions:
You cannot change the Collections collection's permissions.
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.
Description: The collection ID that was created by the server. This is a system field and is hidden by default.
Type: Text
Can connect to data: Yes
Can use in dynamic page URL: Yes
Can be sorted: Yes
Can be filtered: eq, ne, hasSome, startsWith
Read-only: Yes
Required: No
Description: The current state of an item in the collection. The revision's state changes every time an item is modified.
Type: Text
Can connect to data: Yes
Can use in dynamic page URL: No
Can be sorted: No
Can be filtered: No
Read-only: Yes
Required: No
Description: The title of the collection.
Type: Text
Can connect to data: Yes
Can use in dynamic page URL: Yes
Can be sorted: Yes
Can be filtered: eq, ne, hasSome, startsWith
Read-write: Yes
Required: No
Description: The description of the collection.
Type: Text
Can connect to data: Yes
Can use in dynamic page URL: Yes
Can be sorted: Yes
Can be filtered: eq, ne, hasSome
Read-write: Yes
Required: No
Description: The collection item's slug. The slug is the URL-friendly name that is unique across the portfolio.
Type: Text
Can connect to data: Yes
Can use in dynamic page URL: Yes
Can be sorted: Yes
Can be filtered: eq, ne, hasSome, startsWith
Read-write: Yes
Required: No
Description: A JSON object that represents the cover image of the collection.
Type: Object
Can connect to data: Yes, by the cover image's focal points.
Can use in dynamic page URL: No
Can be sorted: No
Can be filtered: No
Read-write: Yes
Required: No
{
"imageInfo": "wix:image://v1/8b7eef_3deb121802514be7b698d0447559f9da~mv2.png/avatar-ga890ac591_1280.png#originWidth=1280&originHeight=1280",
"focalPoint": {
"x": "number",
"y": "number"
}
}
Description: Whether the collection is hidden.
Type: Boolean
Can connect to data: Yes
Can use in dynamic page URL: No
Can be sorted: No
Can be filtered: eq, ne, hasSome
Read-write: Yes
Required: No
Description: The collection sort order.
Type: Number
Can connect to data: Yes
Can use in dynamic page URL: Yes
Can be sorted: Yes
Can be filtered: eq, ne, hasSome, lt, le, gt, ge
Read-write: Yes
Required: No
Description: The date the collection was created. This is a system field and is hidden by default.
Type: Date
Can connect to data: Yes
Can use in dynamic page URL: No
Can be sorted: Yes
Can be filtered: eq, ne, hasSome, lt, gt
Read-only: Yes
Required: No
Description: The date the collection was last updated. This is a system field and is hidden by default.
Type: Date
Can connect to data: Yes
Can use in dynamic page URL: No
Can be sorted: Yes
Can be filtered: eq, ne, hasSome, lt, gt
Read-only: Yes
Required: No
Description: The url of the collection page.
Type: Text
Can connect to data: Yes
Can use in dynamic page URL: No
Can be sorted: No
Can be filtered: No
Read-only: Yes
Required: No
Description: A JSON object that represents Seo data of the collection.
Type: Object
Can connect to data: No
Can use in dynamic page URL: No
Can be sorted: No
Can be filtered: No
Read-write: Yes
Required: No
{
"settings": {
"preventAutoRedirect": "true"
},
"tags": {
[
"children": "",
"custom": "",
"disabled":"",
"meta": {},
"props": {},
"type":""
]
}
}