I’m inserting a batch of names:
myCollection.InsertBatch(value.Split(',').Where(o=> !string.IsNullOrEmpty(o)).Select( o => new Client { Name = o.Trim() }));
How to insert only the ones, that don’t have the same Name?
p.s. Are MongoInsertOptions useful in this case?
Make unique index on “Name”
Add InsertOptions