You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
include=resourceA:fields(a|b|c).resourceB:fields(aa|bb|cc) won't work
so i have to write like this: include=resourceA:fields(a|b|c),resourceA.resourceB:fields(aa|bb|cc)
it'll become a quite long query string when things getting just a little more complicated!
i wonder the reason why not support analyze the nested relations and params at the same time?
the include=resourceA:fields(a|b|c).resourceB:fields(aa|bb|cc) way.
the reason locates in the Manager.php's function parseIncludes, after explode(',', ....) the code start to load the param by : so the nested param is loaded and the nested info is abandoned.
so just adjust the order of the code here, after explode(',', ...) then explode('.', ...) and store the nested relation then load the param.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 4 weeks if no further activity occurs. Thank you for your contributions.
when using fractal(0.13.0) in Laravel(5.1.45)
include=resourceA:fields(a|b|c).resourceB:fields(aa|bb|cc)
won't workso i have to write like this:
include=resourceA:fields(a|b|c),resourceA.resourceB:fields(aa|bb|cc)
it'll become a quite long query string when things getting just a little more complicated!
i wonder the reason why not support analyze the nested relations and params at the same time?
the
include=resourceA:fields(a|b|c).resourceB:fields(aa|bb|cc)
way.the reason locates in the Manager.php's function
parseIncludes
, afterexplode(',', ....)
the code start to load the param by : so the nested param is loaded and the nested info is abandoned.so just adjust the order of the code here, after
explode(',', ...)
thenexplode('.', ...)
and store the nested relation then load the param.The text was updated successfully, but these errors were encountered: