mongo icon indicating copy to clipboard operation
mongo copied to clipboard

Official MongoDB driver

Results 6 mongo issues
Sort by recently updated
recently updated
newest added

Error when using function `collection.insert_one()`. Code: ```v module sublib import mongo fn main() { mongo_uri := mongo.uri_new('xxx') client := mongo_uri.get_database('discord_bot') col := client.get_collection('discord_bot', 'user_data') col.insert_one({ 'str': 'string' 'number': 2 'float':...

Hey, I've already wrote some code for mongo on VLang You can check it out here https://github.com/Chank1e/mongov Would be great if I can help you with this piece of code)

I am having an issue running the [example](https://github.com/vlang/mongo/blob/main/examples/example.v) ``` mongo.v:20:15: error: undefined ident: `bson` 18 | } 19 | 20 | user_bson := bson.new_from_json(json.encode(app)) | ~~~~ 21 | 22 |...

I'm having trouble doing a basic find. ```v query := mongo.new_from_json('{}') count := collection.count_documents(query) println(count) // 69 return ok bson_doc := mongo.new_bson() cursor := collection.find(query) for cursor.next(&bson_doc) { str :=...

This issue is to discuss the planning of the mongo vlang driver. * Currently the implementation is a wrapper around the mongo-c-driver. Is it the long term solution? * Are...