@wix/wix-data-items-sdk 1.0.224 → 1.0.226
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/src/data-v2-data-item-items.universal.d.ts +76 -165
- package/build/cjs/src/data-v2-data-item-items.universal.js +76 -165
- package/build/cjs/src/data-v2-data-item-items.universal.js.map +1 -1
- package/build/es/src/data-v2-data-item-items.universal.d.ts +76 -165
- package/build/es/src/data-v2-data-item-items.universal.js +76 -165
- package/build/es/src/data-v2-data-item-items.universal.js.map +1 -1
- package/package.json +3 -3
|
@@ -38,11 +38,7 @@ Object.defineProperty(exports, "QueryBase", { enumerable: true, get: function ()
|
|
|
38
38
|
* existing ID in the collection. Meaning, `insert()` cannot overwrite an
|
|
39
39
|
* existing item in the collection.
|
|
40
40
|
*
|
|
41
|
-
* Calling the `insert()` method triggers the `beforeInsert()` and
|
|
42
|
-
* `afterInsert()` hooks if they have been defined.
|
|
43
|
-
*
|
|
44
|
-
* Use the `options` parameter to run `insert()` from backend code without
|
|
45
|
-
* checking for permissions or without its registered hooks.
|
|
41
|
+
* Calling the `insert()` method triggers the [`beforeInsert()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/before-insert) and [`afterInsert()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/after-insert) hooks if they have been defined.
|
|
46
42
|
*
|
|
47
43
|
* When inserting an item into a collection that has a reference field, set the
|
|
48
44
|
* value of the reference field to the referenced item's `_id` value or the entire referenced item object.
|
|
@@ -57,21 +53,15 @@ Object.defineProperty(exports, "QueryBase", { enumerable: true, get: function ()
|
|
|
57
53
|
* added, the `_createdDate` and `_updatedDate` are the same.
|
|
58
54
|
*
|
|
59
55
|
* Any valid JavaScript object can be added as a property value. The `insert()`
|
|
60
|
-
* method maintains the structure of the specified object. For example, objects that contain nested objects,
|
|
56
|
+
* method maintains the structure of the specified object. For example, objects that contain nested objects, arrays, or arrays with nested objects are all added to the collection as defined.
|
|
61
57
|
*
|
|
62
|
-
* The maximum size of an item that you can add to a collection is 500kb.
|
|
63
58
|
*
|
|
64
59
|
* > **Notes:**
|
|
65
|
-
* > -
|
|
66
|
-
*
|
|
67
|
-
* > - When creating a
|
|
68
|
-
* >
|
|
69
|
-
* >
|
|
70
|
-
* > - If there is a pre-existing item in a Single Item Collection, the
|
|
71
|
-
* > `insert()` method will not run. To update or change an item in a
|
|
72
|
-
* > Single Item Collection see the `update()` and `save()` methods.
|
|
73
|
-
* > - The `insert()` method does not support multi-reference fields. For
|
|
74
|
-
* > multi-reference fields, use `insertReference()`.
|
|
60
|
+
* > - The maximum size of an item that you can add to a collection is 500kb.
|
|
61
|
+
* > - If an item's `_id` property value is set to `null` or an empty string, an error is thrown.
|
|
62
|
+
* > - When creating a [single-item collection](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection), an item with the system field `_id` is pre-inserted into the collection. [Single-item collections](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection) may contain only one item.
|
|
63
|
+
* > - If there is a pre-existing item in a [single-item collection](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection), the `insert()` method will not run. To update or change an item in a single-item collection see the `update()` and `save()` methods.
|
|
64
|
+
* > - The `insert()` method does not support multi-reference fields. For multi-reference fields, use `insertReference()`.
|
|
75
65
|
* > - [Translatable collections](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content) do not allow insertion and modification of items when working in a non-primary language. For example, if a collection's primary language is English, and the site visitor is viewing the site in French, calling `insert()` fails and issues an error.
|
|
76
66
|
* @public
|
|
77
67
|
* @param dataCollectionId - ID of the collection item belongs to.
|
|
@@ -94,8 +84,7 @@ async function insert(dataCollectionId, item, options) {
|
|
|
94
84
|
* the specified collection. The Promise is rejected if the current user does not
|
|
95
85
|
* have update permissions for the collection.
|
|
96
86
|
*
|
|
97
|
-
* Calling the `update()` method triggers the `beforeUpdate()` and `afterUpdate()`
|
|
98
|
-
* hooks if they have been defined.
|
|
87
|
+
* Calling the `update()` method triggers the [`beforeUpdate()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/before-update) and [`afterUpdate()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/after-update) hooks if they have been defined.
|
|
99
88
|
*
|
|
100
89
|
* The `update()` method compares the `_id` property of the specified item
|
|
101
90
|
* with the `_id` property values of the items in the specified collection. If
|
|
@@ -107,12 +96,9 @@ async function insert(dataCollectionId, item, options) {
|
|
|
107
96
|
*
|
|
108
97
|
* Any valid JavaScript object can be used as a property value. The `update()`
|
|
109
98
|
* method maintains the structure of the specified object. For example,
|
|
110
|
-
* objects that contain nested objects,
|
|
99
|
+
* objects that contain nested objects, arrays, or arrays with nested objects
|
|
111
100
|
* are all added to the collection as defined.
|
|
112
101
|
*
|
|
113
|
-
* Use the `options` parameter to run `update()` from backend code without
|
|
114
|
-
* checking for permissions or without its registered hooks.
|
|
115
|
-
*
|
|
116
102
|
* When updating an item in a collection that has a reference field, set the
|
|
117
103
|
* value of the reference field to the referenced item's `_id` value or the
|
|
118
104
|
* entire referenced item object.
|
|
@@ -155,24 +141,20 @@ async function update(dataCollectionId, item, options) {
|
|
|
155
141
|
* If none of the items in the collection contain that `_id` value, the
|
|
156
142
|
* specified item does not have an `_id` property, or if the specified item's
|
|
157
143
|
* id property is `undefined`, `save()` uses `insert()` to add the specified
|
|
158
|
-
* item to the collection. This triggers the `beforeInsert()` and
|
|
159
|
-
* `afterInsert()` hooks if they have been defined.
|
|
144
|
+
* item to the collection. This triggers the [`beforeInsert()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/before-insert) and
|
|
145
|
+
* [`afterInsert()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/after-insert) hooks if they have been defined.
|
|
160
146
|
*
|
|
161
|
-
* Use the `options` parameter to run `save()` from backend code without
|
|
162
|
-
* checking for permissions or without its registered hooks.
|
|
163
147
|
*
|
|
164
148
|
* When saving an item to a collection that has a reference field, set the
|
|
165
149
|
* value of the reference field to the referenced item's `_id` value or the
|
|
166
150
|
* entire referenced item object.
|
|
167
151
|
*
|
|
168
|
-
* The maximum size of an item that you can save to a collection is 500kb.
|
|
169
|
-
*
|
|
170
152
|
* > **Notes:**
|
|
171
|
-
* > -
|
|
172
|
-
* >
|
|
173
|
-
* > - The `save()` method does not support multi-reference fields. For
|
|
174
|
-
* > multi-reference fields, use `insertReference() `or `replaceReferences()`.
|
|
153
|
+
* > - The maximum size of an item that you can save to a collection is 500kb.
|
|
154
|
+
* > - If an item's `_id` property value is set to null or an empty string, an error is thrown.
|
|
155
|
+
* > - The `save()` method does not support multi-reference fields. For multi-reference fields, use `insertReference() `or `replaceReferences()`.
|
|
175
156
|
* > - [Translatable collections](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content) do not allow insertion and modification of items when working in a non-primary language. For example, if a collection's primary language is English, and the site visitor is viewing the site in French, calling `save()` fails and issues an error.
|
|
157
|
+
*
|
|
176
158
|
* @public
|
|
177
159
|
* @documentationMaturity preview
|
|
178
160
|
* @requiredField dataCollectionId
|
|
@@ -199,23 +181,14 @@ async function save(dataCollectionId, item, options) {
|
|
|
199
181
|
* referenced item is returned. To return the values of the referenced items
|
|
200
182
|
* use `query()` and `include()`.
|
|
201
183
|
*
|
|
202
|
-
* If the `get()` method is passed the ID of a hidden item, it returns null.
|
|
184
|
+
* If the `get()` method is passed the ID of [a hidden item](https://support.wix.com/en/article/cms-controlling-live-site-item-visibility-from-your-collection), it returns null.
|
|
203
185
|
*
|
|
204
|
-
* Calling the `get()` method triggers the `beforeGet()` and `afterGet()`
|
|
205
|
-
* hooks if they have been defined.
|
|
206
|
-
*
|
|
207
|
-
* Use the `options` parameter to run `get()` from backend code without
|
|
208
|
-
* checking for permissions or without its registered hooks.
|
|
186
|
+
* Calling the `get()` method triggers the [`beforeGet()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/before-get) and [`afterGet()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/after-get) hooks if they have been defined.
|
|
209
187
|
*
|
|
210
188
|
* > **Notes:**
|
|
211
|
-
* > - When using the `query()` or `get()` methods or another data retrieval
|
|
212
|
-
* >
|
|
213
|
-
*
|
|
214
|
-
* > Eventual Consistency for more information. To solve this problem, you
|
|
215
|
-
* > can use the `setTimeout()` method to delay retrieving data following
|
|
216
|
-
* > any changes to your database collection.
|
|
217
|
-
* > - An `itemId` is required to retrieve an item even from a single-item
|
|
218
|
-
* > collection.
|
|
189
|
+
* > - When using the `query()` or `get()` methods or another data retrieval method immediately following a change to your database collection, the data retrieved may not contain your most recent changes. Learn more about [Wix Data and Eventual Consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency). To solve this, you can use the `setTimeout()` method to delay retrieving data following any changes to your database collection.
|
|
190
|
+
* > - An `itemId` is required to retrieve an item even from a [single-item collection](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection).
|
|
191
|
+
*
|
|
219
192
|
* @param dataCollectionId - ID of the collection item belongs to.
|
|
220
193
|
* @param itemId - ID of the data item to retrieve.
|
|
221
194
|
* @param options - Options to use when processing this operation.
|
|
@@ -239,19 +212,11 @@ async function get(dataCollectionId, itemId, options) {
|
|
|
239
212
|
* rejected if the current user does not have "delete" permissions for the
|
|
240
213
|
* collection.
|
|
241
214
|
*
|
|
242
|
-
* Calling the `remove()` method triggers the `beforeRemove()` and
|
|
243
|
-
* `afterRemove()` hooks if they have been defined.
|
|
215
|
+
* Calling the `remove()` method triggers the [`beforeRemove()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/before-remove) and [`afterRemove()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/after-remove) hooks if they have been defined.
|
|
244
216
|
*
|
|
245
|
-
* Use the `options` parameter to run `remove()` from backend code without
|
|
246
|
-
* checking for permissions or without its registered hooks.
|
|
247
217
|
*
|
|
248
|
-
* > **
|
|
249
|
-
*
|
|
250
|
-
* > items in collections referenced by the specified item. For example,
|
|
251
|
-
* > suppose you have a **Movies** collection with an **Actors** field that
|
|
252
|
-
* > contains multiple references to items in a **People** collection. Removing
|
|
253
|
-
* > an item in the **Movies** collection also clears the data in the
|
|
254
|
-
* > corresponding multiple-item reference fields in the **People** collection.
|
|
218
|
+
* > **Note:** The `remove()` method also clears multiple-item reference fields for items in collections referenced by the specified item. For example, suppose you have a **Movies** collection with an **Actors** field that contains multiple references to items in a **People** collection. Removing an item in the **Movies** collection also clears the data in the corresponding multiple-item reference fields in the **People** collection.
|
|
219
|
+
*
|
|
255
220
|
* @param dataCollectionId - ID of the collection that contains the item.
|
|
256
221
|
* @param itemId - ID of the item to remove.
|
|
257
222
|
* @param options - Object containing options to use when processing this operation.
|
|
@@ -272,19 +237,10 @@ async function remove(dataCollectionId, itemId, options) {
|
|
|
272
237
|
* The `truncate()` method returns a Promise that resolves after all items
|
|
273
238
|
* have been removed from the specified collection.
|
|
274
239
|
*
|
|
275
|
-
* `truncate()` runs when
|
|
276
|
-
* - The current user is the site owner.
|
|
277
|
-
* - The request is performed in backend code with a `suppressAuth` options
|
|
278
|
-
* value of `true`.
|
|
240
|
+
* `truncate()` runs when the current user is the site owner, or when the method is called with [elevated permissions](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-elevated-permissions).
|
|
279
241
|
*
|
|
280
|
-
*
|
|
242
|
+
* > **Note:** `truncate()` also clears multiple-item reference fields in collections referenced by the specified collection. For example, suppose you have a **Movies** collection with an **Actors** field that contains multiple references to items in a People collection. Truncating the **Movies** collection also clears the data in the corresponding multiple-item reference field in the People collection.
|
|
281
243
|
*
|
|
282
|
-
* > **Note:** `truncate()` also clears multiple-item reference fields in
|
|
283
|
-
* > collections referenced by the specified collection. For example, suppose you
|
|
284
|
-
* > have a **Movies** collection with an **Actors** field that contains multiple
|
|
285
|
-
* > references to items in a People collection. Truncating the **Movies**
|
|
286
|
-
* > collection also clears the data in the corresponding multiple-item reference
|
|
287
|
-
* > field in the People collection.
|
|
288
244
|
* @public
|
|
289
245
|
* @documentationMaturity preview
|
|
290
246
|
* @requiredField dataCollectionId
|
|
@@ -303,15 +259,10 @@ async function truncate(dataCollectionId) {
|
|
|
303
259
|
* have been added to the specified collection. The Promise is rejected if the
|
|
304
260
|
* current user does not have "create" permissions for the collection. Items
|
|
305
261
|
* are skipped if they include an `_id` property whose value matches an
|
|
306
|
-
* existing ID in the collection.
|
|
262
|
+
* existing ID in the collection. This means that `bulkInsert()` cannot overwrite an
|
|
307
263
|
* existing item in the collection.
|
|
308
264
|
*
|
|
309
|
-
* Calling the `bulkInsert()` method triggers the `beforeInsert()` and
|
|
310
|
-
* `afterInsert()` hooks for each item that is inserted if the hooks have been
|
|
311
|
-
* defined.
|
|
312
|
-
*
|
|
313
|
-
* Use the options parameter to run `bulkInsert()` from backend code without
|
|
314
|
-
* checking for permissions or without its registered hooks.
|
|
265
|
+
* Calling the `bulkInsert()` method triggers the [`beforeInsert()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/before-insert) and [`afterInsert()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/after-insert) events for each item that is inserted, if these events have been defined.
|
|
315
266
|
*
|
|
316
267
|
* When inserting items into a collection that has a reference field, set the
|
|
317
268
|
* values of the reference fields to the referenced item's `_id` value or the
|
|
@@ -329,19 +280,17 @@ async function truncate(dataCollectionId) {
|
|
|
329
280
|
*
|
|
330
281
|
* Any valid JavaScript object can be added as a property value. The
|
|
331
282
|
* `bulkInsert()` method maintains the structure of the specified object. For
|
|
332
|
-
* example, objects that contain nested objects,
|
|
283
|
+
* example, objects that contain nested objects, arrays, or arrays with nested
|
|
333
284
|
* objects are all added to the collection as defined.
|
|
334
285
|
*
|
|
335
|
-
* The maximum size of an item that you can add to a collection is 500kb.
|
|
336
286
|
*
|
|
337
287
|
* > **Notes:**
|
|
338
|
-
* > -
|
|
339
|
-
* >
|
|
288
|
+
* > - The maximum size of an item that you can add to a collection is 500kb.
|
|
289
|
+
* > - If an item's `_id` property value is set to `null` or an empty string, an error is thrown.
|
|
340
290
|
* > - Bulk operations are limited to 1000 items per method call.
|
|
341
|
-
* > - The `bulkInsert()` method is not supported for
|
|
342
|
-
* > - The `bulkInsert()` method does not support multi-reference fields. For
|
|
343
|
-
* >
|
|
344
|
-
* > - [Translatable collections](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content) do not allow insertion and modification of items when working in a non-primary language. For example, if a collection's primary language is English, and the site visitor is viewing the site in French, calling bulkInsert() fails and issues an error.
|
|
291
|
+
* > - The `bulkInsert()` method is not supported for [single-item collections](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection).
|
|
292
|
+
* > - The `bulkInsert()` method does not support multi-reference fields. For multi-reference fields, use `insertReference()`.
|
|
293
|
+
* > - [Translatable collections](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content) do not allow insertion and modification of items when working in a non-primary language. For example, if a collection's primary language is English, and the site visitor is viewing the site in French, calling `bulkInsert()` fails and issues an error.
|
|
345
294
|
* @public
|
|
346
295
|
* @documentationMaturity preview
|
|
347
296
|
* @requiredField dataCollectionId
|
|
@@ -366,39 +315,32 @@ async function bulkInsert(dataCollectionId, items, options) {
|
|
|
366
315
|
* existing ID in the collection. Meaning, `bulkUpdate()` cannot add new items
|
|
367
316
|
* into the collection.
|
|
368
317
|
*
|
|
369
|
-
* Calling the `bulkUpdate()` method triggers the `beforeUpdate()` and
|
|
370
|
-
* `afterUpdate()` hooks for each item that is updated if the hooks have been
|
|
371
|
-
* defined.
|
|
318
|
+
* Calling the `bulkUpdate()` method triggers the [`beforeUpdate()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/before-udpate) and [`afterUpdate()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/after-update) hooks for each item that is updated if the hooks have been defined.
|
|
372
319
|
*
|
|
373
|
-
* The `bulkUpdate()` method compares the `_id` property of the specified
|
|
374
|
-
* items with the `_id` property values of the items in the specified
|
|
375
|
-
* collection.
|
|
320
|
+
* The `bulkUpdate()` method compares the `_id` property of the specified items with the `_id` property values of the items in the specified collection.
|
|
376
321
|
*
|
|
377
322
|
* > **Warning:**
|
|
378
|
-
* >
|
|
379
|
-
*
|
|
380
|
-
*
|
|
323
|
+
* > If an existing item in the specified collection matches the `_id` of the specified item, `bulkUpdate()` replaces the existing item's property values with the ones in the specified item. If the existing item had properties with values and those properties are not included in the specified item, the values in those properties are lost.
|
|
324
|
+
*
|
|
325
|
+
* The item's `_updatedDate` property is also updated to the current date.
|
|
381
326
|
*
|
|
382
327
|
* Any valid JavaScript object can be used as a property value. The
|
|
383
328
|
* `bulkUpdate()` method maintains the structure of the specified object. For
|
|
384
|
-
* example, objects that contain nested objects,
|
|
329
|
+
* example, objects that contain nested objects, arrays, or arrays with nested
|
|
385
330
|
* objects are all added to the collection as defined.
|
|
386
331
|
*
|
|
387
|
-
* Use the options parameter to run `bulkUpdate()` from backend code without
|
|
388
|
-
* checking for permissions or without its registered hooks.
|
|
389
332
|
*
|
|
390
333
|
* When updating items in a collection that has a reference field, set the
|
|
391
334
|
* values of the reference field to the referenced item's `_id` value or the
|
|
392
335
|
* entire referenced item object.
|
|
393
336
|
*
|
|
394
|
-
* The maximum size of an item that you can update in a collection is 500kb.
|
|
395
|
-
*
|
|
396
337
|
* > **Notes:**
|
|
338
|
+
* > - The maximum size of an item that you can update in a collection is 500kb.
|
|
397
339
|
* > - Bulk operations are limited to 1000 items per method call.
|
|
398
|
-
* > - The `bulkUpdate()` method is not supported for
|
|
399
|
-
* > - The `bulkUpdate()` method does not support multi-reference fields. For
|
|
400
|
-
* >
|
|
401
|
-
*
|
|
340
|
+
* > - The `bulkUpdate()` method is not supported for [single-item collections](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection).
|
|
341
|
+
* > - The `bulkUpdate()` method does not support multi-reference fields. For multi-reference fields, use `replaceReferences()` or `insertReference()`.
|
|
342
|
+
* > - [Translatable collections](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content) do not allow insertion and modification of items when working in a non-primary language. For example, if a collection's primary language is English, and the site visitor is viewing the site in French, calling `bulkUpdate()` fails and issues an error.
|
|
343
|
+
*
|
|
402
344
|
* @public
|
|
403
345
|
* @documentationMaturity preview
|
|
404
346
|
* @requiredField dataCollectionId
|
|
@@ -433,27 +375,20 @@ async function bulkUpdate(dataCollectionId, items, options) {
|
|
|
433
375
|
* - If none of the items in the collection contain that `_id` value, the
|
|
434
376
|
* specified item does not have an `_id` property, or if the specified item's
|
|
435
377
|
* `_id` property is `undefined`, `bulkSave()` uses `insert()` to add the
|
|
436
|
-
* specified item into the collection. This triggers the `beforeInsert()` and
|
|
437
|
-
* `afterInsert()` hooks for that item if they have been defined.
|
|
438
|
-
*
|
|
439
|
-
* Use the `options` parameter to run `bulkSave()` from backend code without
|
|
440
|
-
* checking for permissions or without its registered hooks.
|
|
378
|
+
* specified item into the collection. This triggers the [`beforeInsert()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/before-insert) and [`afterInsert()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/after-insert) hooks for that item if they have been defined.
|
|
441
379
|
*
|
|
442
380
|
* When saving items to a collection that has a reference field, set the values
|
|
443
381
|
* of the reference fields to the referenced item's `_id` value or the entire
|
|
444
382
|
* referenced item object.
|
|
445
383
|
*
|
|
446
|
-
* The maximum size of an item that you can save to a collection is 500kb.
|
|
447
|
-
*
|
|
448
384
|
* > **Notes:**
|
|
449
|
-
* > -
|
|
450
|
-
* >
|
|
385
|
+
* > - The maximum size of an item that you can save to a collection is 500kb.
|
|
386
|
+
* > - If an item's `_id` property value is set to null or an empty string, an error is thrown.
|
|
451
387
|
* > - Bulk operations are limited to 1000 items per method call.
|
|
452
|
-
* > - The `bulkSave()` method is not supported for
|
|
453
|
-
* > - The `bulkSave()` method does not support multi-reference fields. For
|
|
454
|
-
* >
|
|
455
|
-
*
|
|
456
|
-
* > - [Translatable collections](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content) do not allow insertion and modification of items when working in a non-primary language. For example, if a collection's primary language is English, and the site visitor is viewing the site in French, calling bulkSave() fails and issues an error.
|
|
388
|
+
* > - The `bulkSave()` method is not supported for [single-item collections](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection).
|
|
389
|
+
* > - The `bulkSave()` method does not support multi-reference fields. For multi-reference fields, use `replaceReferences()` or `insertReference()`.
|
|
390
|
+
* > - [Translatable collections](https://support.wix.com/en/article/wix-multilingual-translating-cms-collection-content) do not allow insertion and modification of items when working in a non-primary language. For example, if a collection's primary language is English, and the site visitor is viewing the site in French, calling `bulkSave()` fails and issues an error.
|
|
391
|
+
*
|
|
457
392
|
* @public
|
|
458
393
|
* @documentationMaturity preview
|
|
459
394
|
* @requiredField dataCollectionId
|
|
@@ -471,19 +406,9 @@ async function bulkSave(dataCollectionId, items, options) {
|
|
|
471
406
|
/**
|
|
472
407
|
* Removes a number of items from a collection.
|
|
473
408
|
*
|
|
474
|
-
* The `bulkRemove()` method returns a Promise that resolves after the items
|
|
475
|
-
* have been removed from the specified collection. The Promise is rejected if
|
|
476
|
-
* the current user does not have "delete" permissions for the collection. If
|
|
477
|
-
* the delete permissions for the collection are set to Site member author, the
|
|
478
|
-
* only items that are deleted are those for which the current user is the
|
|
479
|
-
* owner. All other items are skipped.
|
|
480
|
-
*
|
|
481
|
-
* Calling the `bulkRemove()` method triggers the `beforeRemove()` and
|
|
482
|
-
* `afterRemove()` hooks for each item that is deleted if the hooks have been
|
|
483
|
-
* defined.
|
|
409
|
+
* The `bulkRemove()` method returns a Promise that resolves after the items have been removed from the specified collection. The Promise is rejected if the current user does not have "delete" permissions for the collection. If the delete permissions for the collection are assigned to [**Item's creator**](https://support.wix.com/en/article/cms-collection-permissions-overview#set-custom-permissions-for-more-access-control), the only items that are deleted are those for which the current user is the owner. All other items are skipped.
|
|
484
410
|
*
|
|
485
|
-
*
|
|
486
|
-
* checking for permissions or without its registered hooks.
|
|
411
|
+
* Calling the `bulkRemove()` method triggers the [`beforeRemove()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/before-remove) and [`afterRemove()`](https://dev.wix.com/docs/velo/api-reference/wix-data/hooks/after-remove) hooks for each item that is deleted if the hooks have been defined.
|
|
487
412
|
*
|
|
488
413
|
* > **Notes:**
|
|
489
414
|
* > - The `bulkRemove()` method also clears multiple-item reference fields
|
|
@@ -493,6 +418,7 @@ async function bulkSave(dataCollectionId, items, options) {
|
|
|
493
418
|
* > Removing items in the **Movies** collection also clears the data in the
|
|
494
419
|
* > corresponding multiple-item reference fields in the People collection.
|
|
495
420
|
* > - Bulk operations are limited to 1000 items per method call.
|
|
421
|
+
*
|
|
496
422
|
* @public
|
|
497
423
|
* @documentationMaturity preview
|
|
498
424
|
* @requiredField dataCollectionId
|
|
@@ -512,10 +438,8 @@ async function bulkRemove(dataCollectionId, itemIds, options) {
|
|
|
512
438
|
*
|
|
513
439
|
* The `isReferenced()` method returns a Promise that resolves to true if the referring item contains a reference to the referenced item in the specified field. The Promise is rejected if the current user does not have read permissions for the collection.
|
|
514
440
|
*
|
|
515
|
-
*
|
|
441
|
+
* > **Note:** The `isReferenced()` method is not supported for [single-item collections](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection).
|
|
516
442
|
*
|
|
517
|
-
* > **Note:** The `isReferenced()` method is not supported for Single Item
|
|
518
|
-
* > Collections.
|
|
519
443
|
* @public
|
|
520
444
|
* @documentationMaturity preview
|
|
521
445
|
* @requiredField dataCollectionId
|
|
@@ -545,8 +469,6 @@ async function isReferenced(dataCollectionId, field, referringItem, referencedIt
|
|
|
545
469
|
* specified property. The Promise is rejected if the current user does not
|
|
546
470
|
* have update permissions for the collection.
|
|
547
471
|
*
|
|
548
|
-
* Calling the `insertReference()` method does not trigger any hooks.
|
|
549
|
-
*
|
|
550
472
|
* > **Notes:**
|
|
551
473
|
* > - The `insertReference()` method only applies to multi-reference fields.
|
|
552
474
|
* > - The `insertReference()` method is not supported for Single Item
|
|
@@ -585,10 +507,8 @@ async function insertReference(dataCollectionId, field, referringItem, reference
|
|
|
585
507
|
* in the referring item. The Promise is rejected if the current user does not
|
|
586
508
|
* have update permissions for the collection.
|
|
587
509
|
*
|
|
588
|
-
*
|
|
510
|
+
* > **Note:** The `removeReference()` method is not supported for [single-item collections](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection).
|
|
589
511
|
*
|
|
590
|
-
* > **Note:** The `removeReference()` method is not supported for Single
|
|
591
|
-
* > Item Collections.
|
|
592
512
|
* @public
|
|
593
513
|
* @documentationMaturity preview
|
|
594
514
|
* @requiredField dataCollectionId
|
|
@@ -616,10 +536,9 @@ async function removeReference(dataCollectionId, field, referringItem, reference
|
|
|
616
536
|
* rejected if the current user does not have update permissions for the
|
|
617
537
|
* collection.
|
|
618
538
|
*
|
|
619
|
-
* Calling the `replaceReferences()` method does not trigger any hooks.
|
|
620
539
|
*
|
|
621
|
-
* > **Note:** The `replaceReferences()` method is not supported for
|
|
622
|
-
*
|
|
540
|
+
* > **Note:** The `replaceReferences()` method is not supported for [single-item collections](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection).
|
|
541
|
+
*
|
|
623
542
|
* @public
|
|
624
543
|
* @documentationMaturity preview
|
|
625
544
|
* @requiredField dataCollectionId
|
|
@@ -649,31 +568,25 @@ function bulkPatch(dataCollectionId, itemIds) {
|
|
|
649
568
|
/**
|
|
650
569
|
* Creates a query to retrieve items from a database collection.
|
|
651
570
|
*
|
|
652
|
-
* The `query()` method builds a query to retrieve data items from a collection and returns a `WixDataQuery` object, which contains the query definition.
|
|
653
|
-
*
|
|
654
|
-
* You can refine the query by chaining `WixDataQuery` methods onto the query. `WixDataQuery` methods enable you to sort, filter, and control the results that `query()` returns.
|
|
571
|
+
* The `query()` method builds a query to retrieve data items from a collection and returns a `WixDataQuery` object, which contains the query definition. You can refine the query by chaining [`WixDataQuery` methods](https://dev.wix.com/docs/sdk/backend-modules/data/items-new/wix-data-query/introduction) onto the query. `WixDataQuery` methods enable you to sort, filter, and control the query results.
|
|
655
572
|
*
|
|
656
|
-
*
|
|
573
|
+
* The methods chained to `query()` are applied in the order they are called. For example, if you sort by an `age` field in ascending order and then by a `name` field in descending order, the results are sorted first by the age of the items. If there are multiple results with the same age, they are further sorted by name in descending order, per age value.
|
|
657
574
|
*
|
|
658
|
-
*
|
|
575
|
+
* Finally, to run the query, chain [`find()`](https://dev.wix.com/docs/sdk/backend-modules/data/items-new/wix-data-query/find) or [`distinct()`](https://dev.wix.com/docs/sdk/backend-modules/data/items-new/wix-data-query/distinct) as the last method.
|
|
659
576
|
*
|
|
660
577
|
* The `query()` method runs with the following `WixDataQuery` defaults that you can override:
|
|
661
|
-
* - `skip`: 0
|
|
662
|
-
* - `limit`: 50
|
|
578
|
+
* - `skip`: `0`
|
|
579
|
+
* - `limit`: `50`
|
|
663
580
|
* - `descending`: by `_createdDate`
|
|
664
|
-
* - `include`: none
|
|
665
|
-
*
|
|
666
|
-
* If the collection that you are querying has references to other collections, by default the data from referenced collections is not retrieved. To retrieve data from the referenced items, specify them using the `include()` method.
|
|
581
|
+
* - `include`: `none`
|
|
667
582
|
*
|
|
668
583
|
* > **Notes**:
|
|
669
|
-
* > - When calling `query()` following an update to your collection, the data retrieved might not contain the most recent changes. If you need the most up-to-date data, set `options.consistentRead` to `true`.
|
|
670
|
-
* > - Items marked as hidden are not retrieved.
|
|
671
|
-
*
|
|
672
|
-
* When
|
|
673
|
-
*
|
|
674
|
-
*
|
|
675
|
-
* - Can be sorted and filtered
|
|
676
|
-
* - Read-only: Check which fields can be used in a query.
|
|
584
|
+
* > - When calling `query()` immediately following an update to your collection, the data retrieved might not contain the most recent changes. If you need the most up-to-date data, set the `options.consistentRead` parameter of the [`find()`](https://dev.wix.com/docs/sdk/backend-modules/data/items-new/wix-data-query/find) or [`distinct()`](https://dev.wix.com/docs/sdk/backend-modules/data/items-new/wix-data-query/distinct) methods to `true`. Learn more about [Wix Data and Eventual Consistency](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency).
|
|
585
|
+
* > - Items marked [in the CMS as hidden](https://support.wix.com/en/article/cms-controlling-live-site-item-visibility-from-your-collection) are not retrieved.
|
|
586
|
+
* > - If the collection that you are querying has references to other collections, by default the data from referenced collections is not retrieved. To retrieve data from the referenced items, specify them using the `include()` method.
|
|
587
|
+
* > - When querying [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), make sure the fields you use to refine your query support the intended operations. Learn more about [querying by Wix app collection fields](https://dev.wix.com/docs/develop-websites/articles/wix-apps/wix-app-collections/querying-wix-app-collections).
|
|
588
|
+
*
|
|
589
|
+
*
|
|
677
590
|
* @public
|
|
678
591
|
* @documentationMaturity preview
|
|
679
592
|
* @requiredField dataCollectionId
|
|
@@ -692,16 +605,15 @@ function query(dataCollectionId) {
|
|
|
692
605
|
* The `aggregate()` method builds an aggregation on the specified collection and returns a `WixDataAggregate` object.
|
|
693
606
|
*
|
|
694
607
|
* An aggregation enables you to perform certain calculations on your collection data, or on groups of items that you define, to retrieve meaningful summaries.
|
|
695
|
-
* You can also add paging, filtering, and sorting preferences to your aggregation to retrieve exactly what you need.
|
|
696
608
|
*
|
|
697
|
-
*
|
|
609
|
+
* You can also add paging, filtering, and sorting preferences to your aggregation by chaining [`WixDataAggregate`](https://dev.wix.com/docs/sdk/backend-modules/data/items-new/wix-data-aggregate/introduction) methods. The returned object contains the aggregate definition.
|
|
698
610
|
*
|
|
699
|
-
*
|
|
611
|
+
* Finally, to run the aggregation, chain [`run()`](https://dev.wix.com/docs/sdk/backend-modules/data/items-new/wix-data-aggregate/run) as the last method.
|
|
700
612
|
*
|
|
701
613
|
* The `aggregate()` method runs with the following defaults that you can override:
|
|
702
614
|
*
|
|
703
|
-
* + `skip`
|
|
704
|
-
* + `limit
|
|
615
|
+
* + `skip`: `0`
|
|
616
|
+
* + `limit`: `50`
|
|
705
617
|
*
|
|
706
618
|
* @public
|
|
707
619
|
* @documentationMaturity preview
|
|
@@ -725,10 +637,9 @@ function aggregate(dataCollectionId) {
|
|
|
725
637
|
* The `queryReferenced()` method returns a Promise that resolves to the full items referenced in the specified property of the item from the specified collection. The Promise is rejected if the current user does not have read permissions for the specified collection or the collection containing the referenced items.
|
|
726
638
|
*
|
|
727
639
|
* > **Notes**:
|
|
728
|
-
* > - Calling `queryReferenced()` does not trigger any hooks.
|
|
729
640
|
* > - You can only call `queryReferenced()` for [multi-reference fields](https://support.wix.com/en/article/about-referencing-multiple-items-in-one-field).
|
|
730
641
|
* > - This method does not support [single-item collections](https://support.wix.com/en/article/cms-adding-and-setting-up-a-single-item-collection).
|
|
731
|
-
* > - When calling `queryReferenced()` following an update to your collection, the data retrieved [may not contain the most recent changes](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency). If you need the most up-to-date data, set `options.consistentRead` to `true`.
|
|
642
|
+
* > - When calling `queryReferenced()` immediately following an update to your collection, the data retrieved [may not contain the most recent changes](https://dev.wix.com/docs/sdk/backend-modules/data/eventual-consistency). If you need the most up-to-date data, set `options.consistentRead` to `true`.
|
|
732
643
|
*
|
|
733
644
|
* Learn more about [querying items that reference other items](https://support.wix.com/en/article/including-referenced-data-when-filtering).
|
|
734
645
|
* @public
|
|
@@ -753,7 +664,7 @@ async function queryReferenced(dataCollectionId, referringItem, field, options)
|
|
|
753
664
|
*
|
|
754
665
|
* The `filter()` method builds a filter to be applied to a query or an aggregation. It returns a `WixDataFilter` object, which can be used with other filter methods such as `and()`, `or()` and `not()`, to create complex filter definitions.
|
|
755
666
|
*
|
|
756
|
-
* When working with [Wix app collections](https://
|
|
667
|
+
* When working with [Wix app collections](https://dev.wix.com/docs/develop-websites/articles/databases/wix-data/collections/working-with-wix-app-collections-and-code), check which fields can be used in a filter.
|
|
757
668
|
*
|
|
758
669
|
* @public
|
|
759
670
|
* @documentationMaturity preview
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-v2-data-item-items.universal.js","sourceRoot":"","sources":["../../../src/data-v2-data-item-items.universal.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"data-v2-data-item-items.universal.js","sourceRoot":"","sources":["../../../src/data-v2-data-item-items.universal.ts"],"names":[],"mappings":";;;AAmEA,wBAeC;AA6CD,wBAeC;AA2CD,oBAeC;AAiCD,kBAeC;AAyBD,wBAeC;AAmBD,4BAOC;AAmDD,gCAeC;AAgDD,gCAeC;AA8CD,4BAeC;AA4BD,gCAeC;AA0BD,oCAmBC;AA4BD,0CAgCC;AA0BD,0CAmBC;AA4BD,8CAmBC;AAED,sBAOC;AAED,8BAaC;AAgCD,sBAOC;AA0BD,8BAOC;AA8BD,0CAqBC;AAYD,wBAOC;AA74BD,iDAA8C;AAC9C,sEAemC;AAw4BjC,6FA54BA,oCAAY,OA44BA;AAEZ,0FA54BA,iCAAS,OA44BA;AAx4BX;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AACI,KAAK,UAAU,MAAM,CAC1B,gBAAwB,EACxB,IAA0B,EAC1B,OAA8B;IAE9B,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAA;IAED,OAAO,IAAA,4BAAa,EAAC,UAAU,EAAE,WAAW,CAAC,CAAC,MAAM,CAClD,gBAAgB,EAChB,IAAI,EACJ,OAAO,CACR,CAAA;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACI,KAAK,UAAU,MAAM,CAC1B,gBAAwB,EACxB,IAAiB,EACjB,OAA8B;IAE9B,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,GAAG,SAAS,CAAC,CAAC,CAG9C,CAAA;IAED,OAAO,IAAA,4BAAa,EAAC,UAAU,EAAE,WAAW,CAAC,CAAC,MAAM,CAClD,gBAAgB,EAChB,IAAI,EACJ,OAAO,CACR,CAAA;AACH,CAAC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACI,KAAK,UAAU,IAAI,CACxB,gBAA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