summaryrefslogtreecommitdiffstats
path: root/common/src/main/webapp/usageguide/appserver/node_modules/mongoose/examples/README.md
blob: cb32898e8eb5d88b2377cc74d62ec534ee4cabb0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
This directory contains runnable sample mongoose programs.

To run:

  - first install [Node.js](http://nodejs.org/)
  - 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 schemas~~
- ~~GeoJSON schemas / use (with crs)~~
- text search (once MongoDB removes the "Experimental/beta" label)
- ~~lean queries~~
- ~~statics~~
- methods and statics on subdocs
- custom types
- ~~querybuilder~~
- ~~promises~~
- accessing driver collection, db
- ~~connecting to replica sets~~
- connecting to sharded clusters
- enabling a fail fast mode
- on the fly schemas
- storing files
- ~~map reduce~~
- ~~aggregation~~
- 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