I am trying to fetch a record from the mongo db in c# Data in the mongodb collection: Issue: id property is not getting deserialized from the data ...
I am trying to fetch a record from the mongo db in c# Data in the mongodb collection: Issue: id property is not getting deserialized from the data ...
I have a mongodb which looks like this I need to get summation of weight value for a certain client id and product id using mongodb c# client, how ...
I am applying the query to get records which are LessthanOREqual to 9, Price in MongoDB stored as string. So whenever I appy filter like this: filte ...
I'm trying to get a filter with a certain condition to get documents that have an inner array of documents that have a property: Now I want to quer ...
I am trying to fetch a Document from MongoDB using the C# MongoDB driver. public class Record { [BsonId] public ObjectId Id { get; set; } ...
I have questions on InsertManyAsync vs BulkWriteAsync via the NuGet below: https://www.nuget.org/packages/MongoDB.Driver/2.12.3?_src=template I want ...
For some time we've been getting warnings in our code: Warning CS0618 'IMongoCollection.Count(FilterDefinition, CountOptions, CancellationToken)' ...
I'm trying to perform a string concatenation within a project stage of a MongoDb aggregation pipeline operation. I need to add a field called "coid" ...
I am using [BsonExtraElements] in c# to capture additional data that cannot be mapped to my class. public class QuestionAnswerClass { public stri ...
I am using c# mongo db driver to insert and update a document. First i insert a record and then I try to update a specific field of record using FindO ...
I am quite new to MongoDb (and MongoDb C# Drivers) and lately, we are trying to implement an update wherein we use the value of a field and a variable ...
The overall goal is to be able to perform a lookup of a meal based on the userid, and mealid. If that item is found, I want to be able to delete only ...
When I try this: I get the following exception: ProductVersion is the underlying type of the collection. It works when I load the collection in ...
Need to update a document based its value here A and B are 2 fields in the collection. Can anyone suggest a solution? ...
I have a class with some read only properties that I want to store using mongodb. User.cs Class map registration: this class is stored as a sub ...
I'm trying to convert a sql server query to Mongo C# driver LINQ. I have a table with multiple entries for each guid and each entry has different code ...
I'm using Aggregation to do a query and lookup. What's the most efficient way of returning both the results and count using one server call? I've see ...
I have a collection like this: And I am trying to select all the unique persons in the root docs using here newer type inference mongodb c# driver ...
I'm trying to make a Projection right after a Group clause in my C# application but I'm getting "doesn't contain definition for 'Project' " error. Mo ...
I need to join 3 collections in aggregation with multiple $lookup I tried in C# driver it allow me to $lookup User collection but can't perform second ...