Permalink
Commits on Feb 17, 2011
  1. Release 1.0.13

    rauchg committed Feb 17, 2011
  2. Added fix for github issue 255. Embedded document arrays are now prop…

    …erly serialized to send to mongodb. Before, we were sending over entire MongooseArrays, not Arrays of Json. Now, we do.
    bnoguchi committed Feb 17, 2011
Commits on Feb 16, 2011
  1. Merge branch 'namedScope'

    bnoguchi committed Feb 16, 2011
  2. Added tests for empty array default and auto-defaulting to an empty a…

    …rray. Refutes Issue 250.
    bnoguchi committed Feb 16, 2011
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…

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

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

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

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

    …s for remove and update. Started making fixes to make them pass.
    bnoguchi committed Feb 15, 2011
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