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

withOne eager-loading param #4490

brandonkelly opened this issue Jul 5, 2019 · 1 comment


None yet
2 participants
Copy link

commented Jul 5, 2019

Element queries should have a withOne param, which would work similar to with, except that only the first related element would be loaded for each parent element, and those eager-loaded elements wouldn’t need to be accessed using the array syntax (so entry.fieldHandle rather than entry.fieldHandle[0]).


This comment has been minimized.

Copy link

commented Jul 17, 2019

I submitted pull request #4598 as a proposed simplified solution. If you however decide that withOne should work similarly to with then I'd be happy to take a shot at that too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.