I'm surprised you could ever change the _id field.
On Mon, Feb 25, 2013 at 8:18 AM, Dominic Laflamme <[email protected]> wrote: > Hello, > I am using an update handler to insert new documents. > > the following works fine in 1.2.0 and 0.10.0, but no longer works in 1.2.1 > > > function(doc,req) { > var data = JSON.parse(req.body); > data[\'_id\'] = data.UniqueID; > if ( data.timestamp == null ) > { > data.timestamp = new Date().getTime(); > } > return [ data, JSON.stringify(data)]}"); > > > this returns "bad return value". > > any ideas? > > > > > >
