I am trying to add fields to a mongodb document using C # drivers.
I am creating a document.
BsonDocument document = new BsonDocument();
and adding
document.Add(name, value);
but I'm not sure how to add an array to this script
as document.Add(name, values); // here values is List<string>
eg. document.Add(skills, [C++, Java, C#]);
please help me with this
source
share