-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Include with filters REST URL #864
Comments
In angular sdk Albums.find({filter:{
inculde://,
where://
}}) |
Sorry but i want it using REST URL. Iam using CURL and PHP to parse API. |
@yagobski error is equal characters after first |
Test Albums?filter[include][favorites]&filter[where][favorites.type]=abc No information in doc pages |
@yagobski |
Each filter needs an equals sign so the first part is:
I don't know how to filter an included model. As @yagobski said, you could try stringified JSON:
|
This syntax not work with URL format {"error":{"name":"Error","status":500,"message":"Relation "relation" is not defined for Album model","stack":"Error: Relation "relation" is not defined for Album model\n at processIncludeItem |
@yagobski share your relations defined in .json file. |
Any solution how to write this REST URL to filter inside included model? Favorite.json "relations": { Album.json |
Hi,
I want to do include with filters based on REST REQUEST. Something like :
Albums?filter=[include][favorites]&filter[where][favorites.type]=abc
I am using MYSQL connector
Thanks
The text was updated successfully, but these errors were encountered: