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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -