mongo_clientsMongoClientget_or_create_collection本页总览get_or_create_collection 获取指定名称的集合的操作对象,如果不存在则创建 声明 object get_or_create_collection(string name, map fields = nil, array checksum_fields = nil) 参数 参数名描述name集合名字 返回值 集合操作对象(pkg.mongoc.async_collection) 使用方式 返回文档