Can anyone give me an idea, how to implement the following Mongodb querry in cpp using Mongocxx:
db.getCollection('testcollection').find({"dData.V":{$lte:130000}},{_id:0,"dData.V":1,"dData.I":1})
and I'm currently trying to query as follows:
auto cursor = collection.find(document{}<<"$and" </<open_array<<open_document<<"dData.V"<<open_document <<"$lte"<<130000<<close_document<<close_document<<open_document <<"_id"<<0<<"dData.V"<<1<<"dData.I"<<1<<close_document<<close_array <<finalize)
Aucun commentaire:
Enregistrer un commentaire