Permalink
Commits on Feb 14, 2011
  1. Release 1.0.11

    rauchg committed Feb 14, 2011
  2. Style fixes

    Removed castQuery
    rauchg committed Feb 14, 2011
  3. Added alternative approach to using Model.create(...) that enables us…

    … to create multiple documents in the same invocation. This helps us to avoid ugly nested callbacks in our tests. Converted one test to use this new approach.
    bnoguchi committed Feb 14, 2011
  4. Added jsdoc for our $where Query shortcut method for doing queries wi…

    …th javascript expressions/functions. Also added $where directly to Model, so now you can invoke $where directly on model, and it delegates to a new Query instance.
    bnoguchi committed Feb 14, 2011
  5. Added some jsdoc.

    bnoguchi committed Feb 14, 2011
  6. Removed Query types (e.g., FindQuery) in favor of just Query class. T…

    …his increases our flexibility to do things like User.sort('updatedAt', -1).remove() without knowing at the time of invoking `sort` that we'll be using the query for a `remove` one chain link later. Made appropriate adjustments so our test suites all pass.
    bnoguchi committed Feb 14, 2011
  7. Fixed other tests that broke because of switch from exec/run(model, c…

    …b). to query.bind(model).run(cb)
    bnoguchi committed Feb 14, 2011
  8. Got named scope tests passing except for tests where named scopes use…

    …d as parameters to find.
    bnoguchi committed Feb 14, 2011
  9. Implemented nice hack so you can do SomeSchema.namedScope('twenties')…

    ….olderThan(19).youngerThan(30). Before, implementation did not support chaining olderThan and youngerThan after SomeSchema.namedScope.
    bnoguchi committed Feb 14, 2011
  10. Added tests to demonstrate a suggested API for doing named scopes in …

    …model querying. Started working on implementation for it.
    bnoguchi committed Feb 14, 2011
  11. Added test and fix for STRICT null path queries. Fixed Date, Number, …

    …ObjectId, and String type to keep a null value as null in its `cast` function.
    bnoguchi committed Feb 14, 2011
  12. Added test for find "path: null" returning docs with null and undefin…

    …ed at path. Made fix to make this pass.
    bnoguchi committed Feb 14, 2011
  13. Added test for $ne.

    bnoguchi committed Feb 14, 2011
  14. Removed 2 comments.

    bnoguchi committed Feb 14, 2011
  15. Merged code for cloning relevant for toObject from document.js to the…

    … clone method in utils.js.
    bnoguchi committed Feb 14, 2011
  16. Now nulls, empty arrays, and empty objects don't get saved to mongodb…

    … (saves overhead). We no longer have a default default of null. toObject now sends over the minimal data to mongodb. Also added `auto` option for ObjectId SchemaType so the path auto-generates the ObjectId when that option is set to true (we don't want every ObjectId to default to a new auto-generated ObjectId). Added requiredPaths shortcut to Schema to easily access required paths. Required paths are now added to activePaths of the Document upon Document initialization.
    bnoguchi committed Feb 14, 2011
Commits on Feb 12, 2011
  1. Added a test that shows that issue 242 is irrelevant -- i.e., nested …

    …key queries do work.
    bnoguchi committed Feb 12, 2011
  2. Added test for $exists find. Won't pass until we fix materialization/…

    …raw data assymetry. See Issue 225.
    bnoguchi committed Feb 12, 2011