2 / 2
Mar 6

Trying to do this:

When i try to run this code (db is IMongoDatabase type)

var session = await db.Client.StartSessionAsync(); var command = new BsonDocument("refreshSessions", new BsonArray([session.ServerSession.Id])); await db.RunCommandAsync(new BsonDocumentCommand<BsonDocument>(command));

i get this exception
Command refreshSessions failed: BSON field 'refreshSessions.refreshSessionsFromClient.id' is the wrong binData type 'UUID(deprecated)', expected type 'UUID'.