-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
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
[question][Documents] RunValidators is set by default? #255
Comments
and you can view the defaults used in the update operation here: feathers-mongoose/lib/service.js Line 202 in 5d956bc
and here it is in patch: feathers-mongoose/lib/service.js Line 252 in 5d956bc
Hope this helps! |
@jamesjnadeau Thank you very much. In source code, it 's set by default, I just concern about documents. When I read the documents, I think it's not set by default. This option is disable from [mongoose]( Do you think documents should mention |
Maybe? From my understanding the current functionality works like other feathers adapter. I personally think having runValidators set to true is a good choice. Feel free to submit a pull request with the updated docs. |
@jamesjnadeau I submit this PR. |
Hello, this is not an issue, just a question about README. Seem that I don't understand it correctly. Could some guys can explain it, please?
In README, there's an paragraph:
params.mongoose
When making a service method call, params can contain a mongoose property which allows you to modify the options used to run the Mongoose query. Normally, this will be set in a before hook:
And here is my concern. With this docs, does it mean
runValidators
is set to true by default?The text was updated successfully, but these errors were encountered: