MongoDB C++;司机 我使用MunGDB 3.4和C++驱动程序(最新版本3.1.1)。我需要通过$regex查询以给定前缀开头的项目。目前,我使用以下查询文档: auto query = bsoncxx::builder::str
MongoDB C++;司机 我使用MunGDB 3.4和C++驱动程序(最新版本3.1.1)。我需要通过MongoDB C++;司机 我使用MunGDB 3.4和C++驱动程序(最新版本3.1.1)。我需要通过$regex查询以给定前缀开头的项目。目前,我使用以下查询文档: auto query = bsoncxx::builder::str,c++,mongodb,mongo-cxx-driver,C++,Mongodb,Mongo Cxx Driver,MongoDB C++;司机 我使用MunGDB 3.4和C++驱动程序(最新版本3.1.1)。我需要通过$regex查询以给定前缀开头的项目。目前,我使用以下查询文档: auto query = bsoncxx::builder::stream::document() << "item" << bsoncxx::types::b_regex("^" + prefix, "") << bsoncxx::builder::
$regex
查询以给定前缀开头的项目。目前,我使用以下查询文档:
auto query = bsoncxx::builder::stream::document()
<< "item" << bsoncxx::types::b_regex("^" + prefix, "")
<< bsoncxx::builder::stream::finalize;
auto query=bsoncxx::builder::stream::document()