arnaucube
arnaucube/thoughtsPublic Self-hosted repository
thoughts/node_modules/mongoose/examples/README.md
node_modules/mongoose/examples/README.mdRaw
 1
 2This directory contains runnable sample mongoose programs.
 3
 4To run:
 5
 6  - first install [Node.js](http://nodejs.org/)
 7  - from the command line, execute: `node example.js`, replacing "example.js" with the name of a program.
 8
 9
10Goal is to show:
11
12- global schemas
13- GeoJSON schemas / use (with crs)
14- text search
15- storing schemas as json
16- lean querires
17- statics
18- methods and statics on subdocs
19- custom types
20- querybuilder
21- promises
22- express + mongoose
23- accessing driver collection, db
24- connecting to replica sets
25- connecting to sharded clusters
26- enabling a fail fast mode
27- on the fly schemas
28- storing files
29- map reduce
30- aggregation
31- advanced hooks
32- using $elemMatch to return a subset of an array
33- query casting
34- upserts
35- pagination
36- express + mongoose session handling
37- group by (use aggregation)
38- authentication
39- schema migration techniques
40- converting documents to plain objects (show transforms)
41- how to $unset
42