Tarun Garg
Tarun Garg
This problem is no longer there after commenting out the pre-hook in `Schema.prototype.virtual` declaration in schemas.js Even after replacing the hook with an empty one: ``` javascript this.pre('init', function(next, obj)...
This is expected Behaviour. Mongoose needs to know if the Schema exists for the referenced model. You can view this as `User` model being dependent on the `Document` model, you...
Thanks for this workaround! On Sun 29 Apr, 2018, 10:34 AM Kev, wrote: > @tarun1793 > > You can pass a custom log function as the second parameter to >...
Mongoose can not add indices by itself. You will need to define the indices yourself, after evaluating your query. If this happens even after setting all the required indices, you...
Just to confirm, the index on name existed even when ran via mongoose? In other words, if you were to re-run the mongoose sort, it would again throw the same...
Can you post content of the `./user` file? Coz the post save should be within the model schema definition.
this is the format for post hooks, taken from docs ``` // Will not execute until the first middleware calls `next()` schema.post('save', function(doc, next) { console.log('post2'); next(); }); ``` please...
Is this a typo in the code or in the comment? ``` assert.ok(result.child.udpated, 'Child should have udpated date.'); ``` it's `udpated`, should be `updated`. For the created key, as mentioned...
Same, +1 [email protected] [email protected] Mac - OS X El Capitan
As a temporary fix, 1. `react-native init myProject` 2. `cd myProject && npm install react-native --save` 3. `cd ..` 4. `react-native init myProject` say `yes` to overwrite the project.