Hi @Illia_Hryshkevych, thank a lot for your post. I can confirm that this is indeed a bug, and I’ve created a ticket for it: https://jira.mongodb.org/browse/CSHARP-5456

Regarding your use case, if you’re using the same representation on all the fields you can also register a static serializer:

BsonSerializer.RegisterSerializer(new GuidSerializer(GuidRepresentation.Standard));

This will work also on nullable Guid fields and you won’t need to use the add the attribute on all fields.

1 Like