Zde je pro vás ukázka. Nemám moc na mongo cxx, takže si nejsem jistý syntaxí.
bsoncxx::builder::stream::document filter_builder;
filter_builder << "$or" << "Builds.level"
<< open_document << "$gte" << 1 << "$lte" << 5 << close_document
<< open_document << "abs.status" << "$gte" << 2 << "$lte" << 5
<< close_document << close_array;
auto cursor = db["your collection name"].find(filter_builder.view());
for (auto&& doc : cursor) {
std::cout << bsoncxx::to_json(doc) << std::endl;
}