Hi everyone,
I have a CreateDate
property that I want to insert but I don´t want to update/replace it. The method that I am using is ReplaceOneAsync.
I couldn’t find information about this on internet. This is a example class and what I am trying to do
public class Document {
public string Name { get; set; }
public string Description{ get; set; }
public DateTime CreateDate { get; set; }
}
await Collection.ReplaceOneAsync(filter, documentToUpdate);
Thanks in advance.
Kind Regards