#include <iostream>#include <mongocxx/client.hpp>#include <mongocxx/instance.hpp>#include <bsoncxx/builder/stream/document.hpp>#include <bsoncxx/json.hpp>using bsoncxx::builder::stream::document;
using bsoncxx::builder::stream::open_document;
using bsoncxx::builder::stream::close_document;
using bsoncxx::builder::stream::open_array;
using bsoncxx::builder::stream::close_array;
int main(int argc, char** args)
{
mongocxx::instance inst{};
mongocxx::client conn{mongocxx::uri{
"mongodb://chenzw:123@IP:端口"}};
auto db = conn[