Investigate a way to read into BsonBinaryData property if it's missed in the stored document

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Unknown
    • 3.10.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Minor Change
    • Dotnet Drivers
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      If I have a model that contains BsonBinaryData property, I can mark it with BsonIgnoreIfNull attribute, will save a document without any problems. But I'll try to read the document that has field is missed, I'll get the following error:

      Cannot deserialize a 'BsonBinaryData' from BsonType 'Null'. 

      Need to investigate what is the proper way to read such documents.

            Assignee:
            Ferdinando Papale
            Reporter:
            Oleksandr Poliakov
            None
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: