Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Content]: Entry query parameters for nested elements are undocumented #693

Open
MoritzLost opened this issue Mar 11, 2025 · 1 comment
Open

Comments

@MoritzLost
Copy link
Contributor

Product

Craft CMS

Description

The parameters for nested entries are missing from the list of entry query parameters. In particular, all the parameters provided by the NestedElementQueryTrait class are missing from the list. In particular:

  • field()
  • fieldId()
  • primaryOwnerId()
  • primaryOwner()
  • ownerId()
  • owner()
  • allowOwnerDrafts()
  • allowOwnerRevisions()

As far as I know, those aren't documented anywhere.

Suggested improvements:

  • Add all of those parameters to the full list linked above.
  • Mention those parameters on the documentation on Matrix fields with some high-level examples, and maybe also under the general section on nested elements.
@AugustMiller
Copy link
Contributor

Interesting! This points to there potentially being more missing methods, provided by other traits. I'll look at our docgen pipeline to see if those can be roped in. ✌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants