Replies: 2 comments
-
Some time later I tried with a different URL, entering the user_id to fields[posts].
The select feature does not match the requested parameters, the author field is displayed all. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Apparently, the problem is from the fields[relation?] parameter. Where the query builder package or laravel specify the name / alias plural. So there is a difference in the Controller.
But in controller and selection, allowedFields must be written in plural. allowedFields[authors], NOT allowedFields[author]
|
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
I am confused by the results that do not match what is documented. I'am using the package version 5.0.2.
Based on the information above, the response from the API is:
Please help, what's wrong? I redo the documentation but the result is the same. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions