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
Execute a programmatic call to a feathers-mongoose service using the $limit parameter:
feathers-mongoose
const res = await this.app.service('my-service').find({ query: { $limit: 1, } }); // an error is thrown by Mongoose
(First please check that this issue is not already solved as described here)
Mongoose should not throw an error up to the caller.
The following error is thrown by Mongoose version 7.x:
MongoServerError: unknown top level operator: $limit. If you have a field name that starts with a '$' symbol, consider using $getField or $setField.
when calling a Feathers service with the query.$limit parameter specified.
query.$limit
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
"@feathersjs/errors": "^5.0.9", "@feathersjs/express": "^4.5.18", "@feathersjs/feathers": "^4.5.12", "@feathersjs/transport-commons": "^4.5.18", "feathers-mongoose": "^8.5.1", "mongoose": "^7.6.3",
NodeJS version: v20.10.0
v20.10.0
Operating System: MacOS Sonoma 14.1.2 (23B92)
MacOS Sonoma 14.1.2 (23B92)
Browser Version: (N/A) Chrome Version 119.0.6045.199 (Official Build) (arm64)
Chrome Version 119.0.6045.199 (Official Build) (arm64)
React Native Version: N/A
N/A
Module Loader: commonjs
commonjs
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Steps to reproduce
Execute a programmatic call to a
feathers-mongoose
service using the $limit parameter:(First please check that this issue is not already solved as described
here)
Expected behavior
Mongoose should not throw an error up to the caller.
Actual behavior
The following error is thrown by Mongoose version 7.x:
MongoServerError: unknown top level operator: $limit. If you have a field name that starts with a '$' symbol, consider using $getField or $setField.
when calling a Feathers service with the
query.$limit
parameter specified.System configuration
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
NodeJS version:
v20.10.0
Operating System:
MacOS Sonoma 14.1.2 (23B92)
Browser Version: (N/A)
Chrome Version 119.0.6045.199 (Official Build) (arm64)
React Native Version:
N/A
Module Loader:
commonjs
The text was updated successfully, but these errors were encountered: