Skip to main content

All Questions

Tagged with
1 vote
0 answers
82 views

The issue My goal is to make an archive for Bluesky posts using MongoDB. I used atrium_api to interact with Bluesky's API. I received the posts in this FeedViewPost format, which is a type alias for ...
CyanMatter's user avatar
-1 votes
1 answer
26 views

I have been recently working on Rust with Mongodb to serialize/deserialize structures with a Mongodb collection. I found an article https://dev.to/techbelle/structuring-data-with-serde-in-rust-for-...
bhaber's user avatar
  • 1
0 votes
1 answer
80 views

In my Rust application I need special handling of duplicate key (code 11000) errors. I figured out this solution, but it looks complicated. Is there any better way? let res = collection.insert_one(...
Cutty Shark's user avatar
0 votes
1 answer
103 views

I'm compiling a project that uses mongodb driver. Now the program is not compiling because among the package dependencies one needs the reference to two libraries ...
apetitflores's user avatar
-1 votes
1 answer
115 views

Here, I am using MongoDB to get the collections: let filter = doc! {}; let mut cursor = match collection.find(filter).await { Ok(cursor) => cursor, Err(e) => { eprintln!("...
dasaradhan's user avatar
1 vote
1 answer
224 views

I'm developing a Rust project using MongoDB. While writing unit tests, I encountered the #[non_exhaustive] attribute used in the MongoDB library. As I'm mocking UserRepository(mockall) which ...
rick's user avatar
  • 761
0 votes
1 answer
126 views

I have simple rocket.rs app with register route Here it's service with mongodb sync driver pub async fn create_new_user(user_email: &str, password: &str, user_name: &str) -> Result<()...
Kristiano Odadu's user avatar
0 votes
1 answer
356 views

As I mentioned below, the problem was occurring when using Rust + SQLX. I started implementing postgresql in a study project, but when I started testing it further I came across the first problem. ...
rick's user avatar
  • 761
1 vote
0 answers
126 views

I am working on a high-performance data import task where I need to migrate billions of records from CSV files to a MongoDB database. Currently, I'm using Rust and considering the use of Tokio for ...
Blue Spider's user avatar
0 votes
0 answers
82 views

I'm testing my application with gatling. The tested endpoint is the login, which must return user information. The function searches two collections sequentially, not in parallel. The problem occurs ...
rick's user avatar
  • 761
1 vote
1 answer
105 views

how can I set one field using another field from the same document in MongoDb in Rust? I tried this, but it just sets "$another_price" literally as value let update = doc! { "...
ekimpl's user avatar
  • 521
0 votes
1 answer
146 views

I have been creating some websocket method on my backend that will use ChangeStream to track data changes in my MongoDb collection. I have this code with a simple pipeline that tries to find records ...
Azashiro Merume's user avatar
0 votes
1 answer
209 views

I was very curious about .bson binary file produced by mongodump. At first, my guessing was BSON Array Bson::Array(array_of_documents) Then: #Cargo.toml [dependecies] ... bson = "2.1.0" //...
ir1keren's user avatar
0 votes
1 answer
108 views

I use MongoDB in a Rust application. I would like to know which server in the cluster send the response of a query. I can see the information (serverHost=) when I consume events with tracing crate but ...
user22299554's user avatar
0 votes
2 answers
323 views

I need help using Rust's u128 data type via MongoDB's Rust driver. Please find my minimal example below: use mongodb::{bson::{doc}, options::{ClientOptions, ServerApi, ServerApiVersion}, ...
mabalenk's user avatar
  • 1,053

15 30 50 per page
1
2 3 4 5
8