-
-
Notifications
You must be signed in to change notification settings - Fork 458
Open
Labels
enhancementA feature or improvementA feature or improvement
Description
Is your feature proposal related to a problem? Please describe.
It seems that it is currently not possible to eager-load multiple relationships through the @with
directive.
Describe the solution you'd like
I think it should either be possible to use the @with
directive more than once on a single field, or the @with
directive should accept an array of relationships.
- Using the
@with
directive multiple times: I'm not sure if it's currently possible to use any directive more than once on a single field. Is this being prevented for some reason? - Accepting an array of relations through the
@with
directive: The question is how to handle scopes then, should they be part of therelations
array (e.grelations: ["relation" => ["scopeOne", "scopeTwo"]]
?
Describe alternatives you've considered
I haven't found any alternative to overcome this issue.
Metadata
Metadata
Assignees
Labels
enhancementA feature or improvementA feature or improvement