You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
8 years ago | |
|---|---|---|
| .. | ||
| aggregate | 8 years ago | |
| express | 8 years ago | |
| geospatial | 8 years ago | |
| globalschemas | 8 years ago | |
| lean | 8 years ago | |
| mapreduce | 8 years ago | |
| population | 8 years ago | |
| promises | 8 years ago | |
| querybuilder | 8 years ago | |
| replicasets | 8 years ago | |
| schema | 8 years ago | |
| statics | 8 years ago | |
| README.md | 8 years ago | |
| doc-methods.js | 8 years ago | |
README.md
This directory contains runnable sample mongoose programs.
To run:
- first install Node.js
- from the root of the project, execute
npm install -d - in the example directory, run
npm install -d - from the command line, execute:
node example.js, replacing "example.js" with the name of a program.
Goal is to show:
global schemasGeoJSON schemas / use (with crs)- text search (once MongoDB removes the "Experimental/beta" label)
lean queriesstatics- methods and statics on subdocs
- custom types
querybuilderpromises- accessing driver collection, db
connecting to replica sets- connecting to sharded clusters
- enabling a fail fast mode
- on the fly schemas
- storing files
map reduceaggregation- advanced hooks
- using $elemMatch to return a subset of an array
- query casting
- upserts
- pagination
- express + mongoose session handling
group by (use aggregation)- authentication
- schema migration techniques
- converting documents to plain objects (show transforms)
- how to $unset