I'm using the c# driver MongoDB.Driver 2.16.0 I'm trying to insert pure json. I want the _id to be used as the new UUID type aka BinData subtype 4. But I get only subtype 3 or pure string.
var testColl = db.GetCollection<BsonDocument>("test");
var testJson = "[{'_id':CSUUID('609e26f6-dbad-4dba-ba37-4e35f0e348ec'),'name':'Data1'},{'_id':CSUUID('609e26f6-dbad-4dba-ba37-4e35f0e348ff'),'name':'Data2'}]";
testColl.InsertMany(BsonSerializer.Deserialize<BsonDocument[]>(testJson));
I tried '_id':'609e26f6-dbad-4dba-ba37-4e35f0e348ec' which results in a string.
I tried '_id':UUID('609e26f6-dbad-4dba-ba37-4e35f0e348ec') which rusults in subtype 3.
And the example code also results in subtype 3.
How must the json look to make a subtype 4?