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
This issue is a reminder to allow empty filter groups in QueryBuilder, which was fixed for Vapor 3 in vapor/fluent#616.
When using the QueryBuilder and a filter group, the resulting SQL statement should be correct, even if no filters are provided.
User.query(on: req).group(.or) { query in // No filters here... }.all()
No filters, so no restrictions on the query, so the statement should be: SELECT * FROM "User" WHERE [].
SELECT * FROM "User" WHERE []
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
This issue is a reminder to allow empty filter groups in QueryBuilder, which was fixed for Vapor 3 in vapor/fluent#616.
When using the QueryBuilder and a filter group, the resulting SQL statement should be correct, even if no filters are provided.
The usage
Expected behavior
No filters, so no restrictions on the query, so the statement should be:
SELECT * FROM "User" WHERE []
.The text was updated successfully, but these errors were encountered: