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.

42 lines
940 B

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