-
-
https://github.com/jonasschmedtmann/complete-node-bootcamp/blob/d39cbf7ee6d00538ab6ff087a5b30d00ae5409ba/4-natours/after-section-11/models/reviewModel.js#L91
```js
this.r = await this.clone().find…
-
- [x] Register Nicks
- [ ] Save state to DB
http://redis.io/
http://www.mongodb.org/
http://mongoosejs.com/
-
I used a hook but it doesn't seem to hit the index
```bash
hooks(schema) {
schema.index({ name: 'text' });
}
```
-
https://github.com/mongoosejs/mongoose-lean-virtuals/issues/52
-
More information here https://mongoosejs.com/docs/migrating_to_7.html.
-
Getting error - `error TS4118: The type of this node cannot be serialized because its property '[hasInstance]' cannot be serialized.` when using TypeScript.
Example model:
```
import mongoose, {…
-
http://mongoosejs.com/docs/promises.html
-
http://mongoosejs.com/docs/guide.html#options
-
- $lookup
- https://mongoosejs.com/docs/populate.html