Would a defaultJoins (like defaultDepth) make sense? #15786
willemmulder
started this conversation in
Feature Requests & Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all, I just figured out that even when we set defaultDepth=0, Payload will still query all joins by default. For us, unexpected behaviour (but we should have paid more attention I suppose), and it slows down things a lot.
However, to fix it, we had to set joins: false on every single query that we use. Would it be useful to have a defaultJoins:false option on the general Payload config?
Beta Was this translation helpful? Give feedback.
All reactions