Bookmarks tagged [mongoose]
https://mongoosejs.com/docs/guide.html
https://www.curtismlarson.com/blog/2016/05/11/mongoose-mongodb-exclude-select-fields/
Individually ...
https://mongoosejs.com/docs/subdocs.html
Subdocuments are documents embedded in other documents. In Mongoose, this means you can nest schemas in other schemas. Mongoose has two distinct notions of subdocuments: arrays of subdocuments and sin...
http://www.codepedia.org/ama/cleaner-code-in-nodejs-with-async-await-mongoose-calls-example
Example showing migration of Mongoose calls from previously using callbacks to using the new async-await feature in NodeJs
- 📆 published on: 2017-11-05
- tags: node.js, async-await, mongoose, mongodb
- source code
https://github.com/blakehaswell/mongoose-unique-validator
mongoose-unique-validator is a plugin which adds pre-save validation for unique fields within a Mongoose schema.
This makes error handling much easier, since you will get a Mongoose validation error ...
- tags: node.js, mongoose, mongodb
- source code
https://blog.usejournal.com/using-mongodb-as-realtime-db-with-nodejs-c6f52c266750
Have you ever run into a scenario where you wanted to update your UI as soon as there is some change to your Mongo database ? For example, A new user gets added and you wanted that change to reflect…
http://thecodebarbarian.com/a-node-js-perspective-on-mongodb-4-transactions.html
Transactions are undoubtedly the most important new feature in MongoDB 4.0. MongoDB has supported ACID for single document operations for many years, and denormalized data meant many apps didn't need ...
https://github.com/diegohaz/rest
RESTful API generator using NodeJS, Express and Mongoose
https://stackoverflow.com/questions/12030371/mongoose-model-save-hangs-when-called-from-node-js-app
You haven't created a connection for Mongoose to use by default. Replace this: ...
https://www.youtube.com/watch?v=XqbBv1i9Yhc
This video covers writing a RESTful JSON API using Node, Express, MongoDB, Mongoose, and TypeScript. My other Node...
- 📆 published on: 2017-07-03
- tags: node.js, expressjs, mongodb, mongoose, typescript
- source code
@types/mongoose-promise does not override mongoose's default promise lib · Issue #10743 · DefinitelyTyped/DefinitelyTyped · GitHub
DefinitelyTyped/DefinitelyTyped#10743
Apparently Typescript 2 doesn't allow assigning properties on an imported module. So this:
...
- tags: mongoose, typescript
https://github.com/szokodiakos/typegoose
typegoose - Typegoose - Define Mongoose models using TypeScript classes.
- tags: mongoose, mongodb, node.js
- source code