The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

Was getting "Bad Request" errors back from Node.js angello-express-api backend when attempting to make changes to either stories or users (both REST put calls). The returned message in both cases was clearly a mongodb error: "mod on _id not allowed".

I tracked this down to what appear to be typos (or omissions) in angello-express-api/features/users/index.js and angello-express-api/features/stories/index.js.

When I changed to app.put handlers in those mosdules from

     _.omit(req.body, 'userId')

     _.omit(req.body, '_id')

the story and user updates work properly.