-
http://mongoosejs.com/docs/middleware.html
- entry in the documentation
syzer updated
10 years ago
-
I used a hook but it doesn't seem to hit the index
```bash
hooks(schema) {
schema.index({ name: 'text' });
}
```
-
# research : research Mongoose in NPM
## read this
- https://mongoosejs.com/
-
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, {…
-
handy for TTL http://mongoosejs.com/docs/api.html#schematype_SchemaType-expires
-
I found http://mongoosejs.com/, it might come in handy should we need to talk to mongo in our client app
-
The populate function should work basically the same as http://mongoosejs.com/docs/api.html#query_Query-populate
-
http://mongoosejs.com/docs/guide.html#timestamps
Let me know if this is a go and I'll be happy to submit a PR.
-
Is there a way to implement a refPath for the `Type.ref()` pattern?
I'm talking about this https://mongoosejs.com/docs/populate.html#dynamic-ref
-
For security too. Can be resolved in conjunction with issue #17.
http://mongoosejs.com/docs/validation.html
Use the `mongoose-error` directive in `app/components`!