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/cms/5.x/addresses.md
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,6 +17,7 @@
17
17
| [andRelatedTo](#andrelatedto) | Narrows the query results to only addresses that are related to certain other elements.
18
18
| [asArray](#asarray) | Causes the query to return matching addresses as arrays of data, rather than [Address](craft5:craft\elements\Address) objects.
19
19
| [cache](#cache) | Enables query cache for this Query.
20
+
| [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.
20
21
| [clearCachedResult](#clearcachedresult) | Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
21
22
| [countryCode](#countrycode) | Narrows the query results based on the country the addresses belong to.
22
23
| [dateCreated](#datecreated) | Narrows the query results based on the addresses’ creation dates.
@@ -295,6 +296,22 @@ Enables query cache for this Query.
295
296
296
297
297
298
299
+
#### `canonicalsOnly`
300
+
301
+
Narrows the query results to only canonical elements, including elements
302
+
that reference another canonical element via `canonicalId` so long as they
303
+
aren’t a draft.
304
+
305
+
306
+
307
+
Unpublished drafts can be included as well if `drafts(null)` and
308
+
`draftOf(false)` are also passed.
309
+
310
+
311
+
312
+
313
+
314
+
298
315
#### `clearCachedResult`
299
316
300
317
Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
Copy file name to clipboardExpand all lines: docs/.artifacts/cms/5.x/assets.md
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@
13
13
| [andRelatedTo](#andrelatedto) | Narrows the query results to only assets that are related to certain other elements.
14
14
| [asArray](#asarray) | Causes the query to return matching assets as arrays of data, rather than [Asset](craft5:craft\elements\Asset) objects.
15
15
| [cache](#cache) | Enables query cache for this Query.
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.
16
17
| [clearCachedResult](#clearcachedresult) | Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
17
18
| [dateCreated](#datecreated) | Narrows the query results based on the assets’ creation dates.
18
19
| [dateModified](#datemodified) | Narrows the query results based on the assets’ files’ last-modified dates.
@@ -175,6 +176,22 @@ Enables query cache for this Query.
175
176
176
177
177
178
179
+
#### `canonicalsOnly`
180
+
181
+
Narrows the query results to only canonical elements, including elements
182
+
that reference another canonical element via `canonicalId` so long as they
183
+
aren’t a draft.
184
+
185
+
186
+
187
+
Unpublished drafts can be included as well if `drafts(null)` and
188
+
`draftOf(false)` are also passed.
189
+
190
+
191
+
192
+
193
+
194
+
178
195
#### `clearCachedResult`
179
196
180
197
Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
Copy file name to clipboardExpand all lines: docs/.artifacts/cms/5.x/categories.md
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
| [andRelatedTo](#andrelatedto) | Narrows the query results to only categories that are related to certain other elements.
16
16
| [asArray](#asarray) | Causes the query to return matching categories as arrays of data, rather than [Category](craft5:craft\elements\Category) objects.
17
17
| [cache](#cache) | Enables query cache for this Query.
18
+
| [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.
18
19
| [clearCachedResult](#clearcachedresult) | Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
19
20
| [dateCreated](#datecreated) | Narrows the query results based on the categories’ creation dates.
20
21
| [dateUpdated](#dateupdated) | Narrows the query results based on the categories’ last-updated dates.
@@ -242,6 +243,22 @@ Enables query cache for this Query.
242
243
243
244
244
245
246
+
#### `canonicalsOnly`
247
+
248
+
Narrows the query results to only canonical elements, including elements
249
+
that reference another canonical element via `canonicalId` so long as they
250
+
aren’t a draft.
251
+
252
+
253
+
254
+
Unpublished drafts can be included as well if `drafts(null)` and
255
+
`draftOf(false)` are also passed.
256
+
257
+
258
+
259
+
260
+
261
+
245
262
#### `clearCachedResult`
246
263
247
264
Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
Copy file name to clipboardExpand all lines: docs/.artifacts/cms/5.x/entries.md
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
| [authorId](#authorid) | Narrows the query results based on the entries’ author ID(s).
21
21
| [before](#before) | Narrows the query results to only entries that were posted before a certain date.
22
22
| [cache](#cache) | Enables query cache for this Query.
23
+
| [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.
23
24
| [clearCachedResult](#clearcachedresult) | Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
24
25
| [dateCreated](#datecreated) | Narrows the query results based on the entries’ creation dates.
25
26
| [dateUpdated](#dateupdated) | Narrows the query results based on the entries’ last-updated dates.
@@ -431,6 +432,22 @@ Enables query cache for this Query.
431
432
432
433
433
434
435
+
#### `canonicalsOnly`
436
+
437
+
Narrows the query results to only canonical elements, including elements
438
+
that reference another canonical element via `canonicalId` so long as they
439
+
aren’t a draft.
440
+
441
+
442
+
443
+
Unpublished drafts can be included as well if `drafts(null)` and
444
+
`draftOf(false)` are also passed.
445
+
446
+
447
+
448
+
449
+
450
+
434
451
#### `clearCachedResult`
435
452
436
453
Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
Copy file name to clipboardExpand all lines: docs/.artifacts/cms/5.x/globals.md
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@
13
13
| [andRelatedTo](#andrelatedto) | Narrows the query results to only global sets that are related to certain other elements.
14
14
| [asArray](#asarray) | Causes the query to return matching global sets as arrays of data, rather than [GlobalSet](craft5:craft\elements\GlobalSet) objects.
15
15
| [cache](#cache) | Enables query cache for this Query.
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.
16
17
| [clearCachedResult](#clearcachedresult) | Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
17
18
| [dateCreated](#datecreated) | Narrows the query results based on the global sets’ creation dates.
18
19
| [dateUpdated](#dateupdated) | Narrows the query results based on the global sets’ last-updated dates.
@@ -160,6 +161,22 @@ Enables query cache for this Query.
160
161
161
162
162
163
164
+
#### `canonicalsOnly`
165
+
166
+
Narrows the query results to only canonical elements, including elements
167
+
that reference another canonical element via `canonicalId` so long as they
168
+
aren’t a draft.
169
+
170
+
171
+
172
+
Unpublished drafts can be included as well if `drafts(null)` and
173
+
`draftOf(false)` are also passed.
174
+
175
+
176
+
177
+
178
+
179
+
163
180
#### `clearCachedResult`
164
181
165
182
Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
Copy file name to clipboardExpand all lines: docs/.artifacts/cms/5.x/tags.md
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,7 @@
13
13
| [andRelatedTo](#andrelatedto) | Narrows the query results to only tags that are related to certain other elements.
14
14
| [asArray](#asarray) | Causes the query to return matching tags as arrays of data, rather than [Tag](craft5:craft\elements\Tag) objects.
15
15
| [cache](#cache) | Enables query cache for this Query.
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.
16
17
| [clearCachedResult](#clearcachedresult) | Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
17
18
| [dateCreated](#datecreated) | Narrows the query results based on the tags’ creation dates.
18
19
| [dateUpdated](#dateupdated) | Narrows the query results based on the tags’ last-updated dates.
@@ -163,6 +164,22 @@ Enables query cache for this Query.
163
164
164
165
165
166
167
+
#### `canonicalsOnly`
168
+
169
+
Narrows the query results to only canonical elements, including elements
170
+
that reference another canonical element via `canonicalId` so long as they
171
+
aren’t a draft.
172
+
173
+
174
+
175
+
Unpublished drafts can be included as well if `drafts(null)` and
176
+
`draftOf(false)` are also passed.
177
+
178
+
179
+
180
+
181
+
182
+
166
183
#### `clearCachedResult`
167
184
168
185
Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
Copy file name to clipboardExpand all lines: docs/.artifacts/cms/5.x/users.md
+17Lines changed: 17 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -20,6 +20,7 @@
20
20
| [authors](#authors) | Narrows the query results to only users that are authors of an entry.
21
21
| [cache](#cache) | Enables query cache for this Query.
22
22
| [can](#can) | Narrows the query results to only users that have a certain user permission, either directly on the user account or through one of their user groups.
23
+
| [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.
23
24
| [clearCachedResult](#clearcachedresult) | Clears the [cached result](https://craftcms.com/docs/5.x/development/element-queries.html#cache).
24
25
| [dateCreated](#datecreated) | Narrows the query results based on the users’ creation dates.
25
26
| [dateUpdated](#dateupdated) | Narrows the query results based on the users’ last-updated dates.
0 commit comments