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
If I try a filtered URL like:
https://my.adminjs.server/admin/resources/myresource?filters.enumField=foo&filters.enumField=bar
The query only looks for WHERE enumField = 'foo'
WHERE enumField = 'foo'
This is because of line 16 in @adminjs/sequelize/lib/utils/convert-filter.js:
if (property.sequelizePath.values || uuidRegex.test(value.toString())) {
Since it is an enum field, this intercepts before it gets to the check for isArray and returns an Op.eq where clause instead of an Op.in clause.
isArray
Op.eq
Op.in
The text was updated successfully, but these errors were encountered:
Note that this line would also prevent the selection of multiple UUIDs if I am reading it correctly.
Sorry, something went wrong.
No branches or pull requests
If I try a filtered URL like:
The query only looks for
WHERE enumField = 'foo'
This is because of line 16 in @adminjs/sequelize/lib/utils/convert-filter.js:
Since it is an enum field, this intercepts before it gets to the check for
isArray
and returns anOp.eq
where clause instead of anOp.in
clause.The text was updated successfully, but these errors were encountered: