You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/.artifacts/commerce/5.x/orders-carts.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
| [cache](#cache) | Enables query cache for this Query.
16
16
| [canonicalsOnly](#canonicalsonly) | Narrows the query results to only canonical elements, including elements that reference another canonical element via `canonicalId` so long as they aren’t a draft.
17
17
| [clearCachedResult](#clearcachedresult) | Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
18
+
| [collectIds](#collectids) | Executes the query and returns the IDs of the resulting elements as a collection.
18
19
| [couponCode](#couponcode) | Narrows the query results based on the order's coupon code.
19
20
| [customer](#customer) | Narrows the query results based on the customer’s user account.
20
21
| [customerId](#customerid) | Narrows the query results based on the customer, per their user ID.
@@ -238,6 +239,21 @@ Clears the [cached result](https://craftcms.com/docs/5.x/development/element-que
238
239
239
240
240
241
242
+
#### `collectIds`
243
+
244
+
<aclass="ref-defined-by"href="https://docs.craftcms.com/api/v5/craft-elements-db-elementquery.html#method-collectids"target="_blank"rel="noopener noreferer">Defined by <code>craft\elements\db\ElementQuery</code></a>
245
+
246
+
Executes the query and returns the IDs of the resulting elements as a collection.
Copy file name to clipboardExpand all lines: docs/.artifacts/commerce/5.x/subscriptions.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
| [cache](#cache) | Enables query cache for this Query.
16
16
| [canonicalsOnly](#canonicalsonly) | Narrows the query results to only canonical elements, including elements that reference another canonical element via `canonicalId` so long as they aren’t a draft.
17
17
| [clearCachedResult](#clearcachedresult) | Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
18
+
| [collectIds](#collectids) | Executes the query and returns the IDs of the resulting elements as a collection.
18
19
| [dateCanceled](#datecanceled) | Narrows the query results based on the subscriptions’ cancellation date.
19
20
| [dateCreated](#datecreated) | Narrows the query results based on the subscriptions’ creation dates.
20
21
| [dateExpired](#dateexpired) | Narrows the query results based on the subscriptions’ expiration date.
@@ -214,6 +215,21 @@ Clears the [cached result](https://craftcms.com/docs/5.x/development/element-que
214
215
215
216
216
217
218
+
#### `collectIds`
219
+
220
+
<aclass="ref-defined-by"href="https://docs.craftcms.com/api/v5/craft-elements-db-elementquery.html#method-collectids"target="_blank"rel="noopener noreferer">Defined by <code>craft\elements\db\ElementQuery</code></a>
221
+
222
+
Executes the query and returns the IDs of the resulting elements as a collection.
0 commit comments