Cannot read property 'scope' of undefined #273
Comments
To use the bundled hooks properly with Mongoose you need to use the toObject hook. |
Or set |
OK Thanks. Will try it. Thought the feathers generator would have take care of all that automatically though... |
The new one should do that indeed. |
Seems stupid but how do I add {lean:true} to my service options?
to
in my user service but it didn't fixed my problem... or is it in my authentication service that I need to set By the way, is there any drawback of using |
I have not run into any issues with using |
I don't know exactly on which of the 2 services the removeField hook call comes from (users or auth) as I didn't setup any personal hooks on this server yet (kept the default configuration for now). |
|
Yes the new release of feathers-hooks fixed my issue. Thanks. |
It should work with |
With the default configuration and a mongoDB database for the service, each time I try to register a new user (with a REST request), I have this error that is returned:
the error appear after the creation of the user entry in the mongoDB database.
The text was updated successfully, but these errors were encountered: