mongodb - play 2.3 Reactive Mongo -



mongodb - play 2.3 Reactive Mongo -

i'm working on play 2.3 reactive mongo. want query db should search id , name or mobile number. ever matches among name , mobile number.

the query in db level worked follows.

db.enduser.find({$and:[{businessuserid:"1"},{ $or: [{name:"ruthvick"},{mobilenumber:"989"}]}]})

but same write per play syntax not fetching result. query in scala didn't work follows.

val cursor: cursor[jsobject] = collectionenduser.find( json.obj("$and"->json.arr(json.obj("businessuserid"->"", "$or"->json.arr(json.obj("name"->"ruthvick", "mobilenumber"->"9686563240"))))) ).cursor[jsobject]

kindly review query , help me necessary changes.

thanks

mongodb scala playframework reactivemongo

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -