mongoDB query has got error -


I wrote a question in mongoDB and found an error. Please help someone solve this problem:

  & gt; Db.Accounts.update (_id: t.source, pending transactions: {$ ne: t._id}}, {$ inc: {balance: -t.value}, $ push: {pendingTransactions: t._id}}) ;   

The error is:

  2014-10-10T20: 27: 02.861 + 0530 Syntax error: unexpected token:   

db.Accounts.update ( { this is unavailable ...

  db.Accounts.update ({_id: t.source, pending transactions: {$ ne: t._id}}, {$ inc: {balance: -t.value}, $ push: {pendingTransactions : T _id}});    

Comments

Popular posts from this blog

Out of index C/C++ -

algorithm - Graph cut with python: How to set up the graph correctly? -

objective c - how Set autolayout for multiple dynamic buttons and labells in iOS? -