You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per the latest docs, specifying the operator in the querySchema is sufficient to allow custom operators call, without the need to add the option operators: ['$regex'] to the service adapter options.
The query should return the documents that have a title that match this regex expression.
Actual behavior
Instead we get this error error: BadRequest: Invalid query parameter $regex.
Only when I add the operators option (which is marked as deprecated) it works fine.
System configuration
Apple M2
Module versions (especially the part that's not working):
Feathersjs ^5.0.11
Mongodb ^6.1.0
NodeJS version:
Node 18.16.0
Operating System:
MacOS 14.1.2 (23B92)
The text was updated successfully, but these errors were encountered:
Steps to reproduce
@feathersjs/mongodb
adapter as a datasesource adapter for your projectExpected behavior
As per the latest docs, specifying the operator in the querySchema is sufficient to allow custom operators call, without the need to add the option
operators: ['$regex']
to the service adapter options.The query should return the documents that have a title that match this regex expression.
Actual behavior
Instead we get this error
error: BadRequest: Invalid query parameter $regex
.Only when I add the
operators
option (which is marked as deprecated) it works fine.System configuration
Module versions (especially the part that's not working):
NodeJS version:
Operating System:
The text was updated successfully, but these errors were encountered: