Files

42 lines
1.1 KiB
Markdown
Raw Permalink Normal View History

2014-09-14 07:04:16 -04:00
This directory contains runnable sample mongoose programs.
To run:
- first install [Node.js](http://nodejs.org/)
2015-11-24 22:08:58 -08:00
- from the root of the project, execute `npm install -d`
- in the example directory, run `npm install -d`
2014-09-14 07:04:16 -04:00
- from the command line, execute: `node example.js`, replacing "example.js" with the name of a program.
Goal is to show:
2015-11-24 22:08:58 -08:00
- ~~global schemas~~
- ~~GeoJSON schemas / use (with crs)~~
- text search (once MongoDB removes the "Experimental/beta" label)
- ~~lean queries~~
- ~~statics~~
2014-09-14 07:04:16 -04:00
- methods and statics on subdocs
- custom types
2015-11-24 22:08:58 -08:00
- ~~querybuilder~~
- ~~promises~~
2014-09-14 07:04:16 -04:00
- accessing driver collection, db
2015-11-24 22:08:58 -08:00
- ~~connecting to replica sets~~
2014-09-14 07:04:16 -04:00
- connecting to sharded clusters
- enabling a fail fast mode
- on the fly schemas
- storing files
2015-11-24 22:08:58 -08:00
- ~~map reduce~~
- ~~aggregation~~
2014-09-14 07:04:16 -04:00
- advanced hooks
- using $elemMatch to return a subset of an array
- query casting
- upserts
- pagination
- express + mongoose session handling
2015-11-24 22:08:58 -08:00
- ~~group by (use aggregation)~~
2014-09-14 07:04:16 -04:00
- authentication
- schema migration techniques
- converting documents to plain objects (show transforms)
- how to $unset