We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Let's assume that we have a model like this;
class StudentLesson extends Model { lesson() { return this.belongsTo("Lesson", "lesson_id", "id"); } teacher() { return this.belongsTo("Teacher", "teacher_id", "id"); } }
When we request the following example, we don't use parentheses to group query features;
/api/students/1/lessons?q=[{ "$or.lesson.name.$like":"*a*"},{ "$or.teacher.name.$like":"*a*"}]
When we execute this request, it executes the following query;
where `student_id` = 1 and `lessons`.`name` like "%a%" or `teachers`.`name` like "%a%"
But, it should be like the following one;
where `student_id` = 1 and (`lessons`.`name` like "%a%" or `teachers`.`name` like "%a%")
The text was updated successfully, but these errors were encountered:
Fixed #93
645292d
b960c13
6806c0d
e4a27ca
6065dc5
ozziest
No branches or pull requests
Let's assume that we have a model like this;
When we request the following example, we don't use parentheses to group query features;
When we execute this request, it executes the following query;
But, it should be like the following one;
The text was updated successfully, but these errors were encountered: