var document = new BsonDocument { { "_id", 1 }, { "x", 0 } }; var bytes = document.ToBson(); var rawDocument = new RawBsonDocument(bytes); database.DropCollection("test"); collection.InsertOne(rawDocument);
--
You received this message because you are subscribed to the Google Groups "mongodb-user"
group.
For other MongoDB technical support options, see: https://docs.mongodb.org/manual/support/
---
You received this message because you are subscribed to the Google Groups "mongodb-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-user...@googlegroups.com.
To post to this group, send email to mongod...@googlegroups.com.
Visit this group at https://groups.google.com/group/mongodb-user.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-user/8c73dbc6-9049-4d95-99f3-744bfef6f842%40googlegroups.com.