js-data/js-data — pull request #25 by kentcdodds (2014-12-05 15:35:24+00:00)
Title: Global upsert option not functioning properly

The problem is that the line

`if (definition && options.upsert && attrs[definition.idAttribute]) {`

runs before

`options = DSUtils._(definition, options);`

so the options don't get merged with the global options. This is a suggested fix.