Pass relationship read action arguments - #2775
Conversation
|
🤔 this is pretty complex. We'd want to survey the following places to make sure that they handle this when building related queries:
If they do any related query building then they'd have to be upgraded to use this option ideally before we release this. (i.e |
804dbc6 to
b944191
Compare
b944191 to
7d6ee6d
Compare
|
Thanks! I surveyed all six repositories. Changes were needed in:
No changes were needed in The resulting precedence is:
The extension changes use |
|
Quick status update:
So this should be ready for review whenever you have a chance. Thanks! |
|
🚀 Thank you for your contribution! 🚀 |
Adds
read_action_argumentsto relationships and passes them through relationship loading.Explicit loads can already provide arguments to read actions, but relationship definitions could only choose the
read_actionitself. This adds the missing symmetric piece: a relationship can now declare static arguments for that read action.This is useful when a relationship should load through a specific read action with relationship-specific argument values, while still allowing explicitly provided load arguments to take precedence.
Includes coverage for a
has_manyrelationship using a read action argument.Contributor checklist
Leave anything that you believe does not apply unchecked.