Permalink
Commits on Feb 15, 2011
  1. Release 1.0.12

    rauchg committed Feb 15, 2011
  2. Cleaned up Query requires.

    bnoguchi committed Feb 15, 2011
  3. Removed old TODO comments.

    bnoguchi committed Feb 15, 2011
  4. Added in code for merging options and fields from cumulativeQuery int…

    bnoguchi committed Feb 15, 2011
    …o current query in Mondel.<queryMethod> (e.g., Model.find)
  5. Added test to demonstrate use of namedScopes and additional querying …

    bnoguchi committed Feb 15, 2011
    …in the same findOne.
  6. Merge branch 'master' into namedScope

    bnoguchi committed Feb 15, 2011
    Conflicts:
    	lib/mongoose/model.js
  7. Updated namedscope test which was mistakenly testing for multi-update…

    bnoguchi committed Feb 15, 2011
    …s, on a non-multi-update. Added an edge case for update where passed in set-to-doc is {}.
  8. Removed legacy castQuery method in model.js. Added in namedScope test…

    bnoguchi committed Feb 15, 2011
    …s for remove and update. Started making fixes to make them pass.
Commits on Feb 14, 2011
  1. Release 1.0.11

    rauchg committed Feb 14, 2011
  2. Style fixes

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

    bnoguchi committed Feb 14, 2011
    … 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.
  4. Added jsdoc for our $where Query shortcut method for doing queries wi…

    bnoguchi committed Feb 14, 2011
    …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.
  5. Added some jsdoc.

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

    bnoguchi committed Feb 14, 2011
    …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.
  7. Fixed other tests that broke because of switch from exec/run(model, c…

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

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

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

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

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

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

    bnoguchi committed Feb 14, 2011