I have to write a complex mongo query using java but am not able to do it.
The mongo query looks like this:
db.video.findOne( { 
    $or: [ 
        { key1: { $in : [764] } }, 
        { key2: {$in : [list2] } }, 
        { $and [ { key2 : 3}, {key4:67} ] } 
    ]
})
I have to write the above query using the QueryBuilder class. In what way can I do it?
Thanks