Skip to content

More flexibility to manage discrepancy and record types #11

@pierroz127

Description

@pierroz127

Hi

I've been using MongoDB.FSharp for a couple of weeks and it works fine. However, today, I've got a problem : my models have changed so I've had to update the record type I use in my code to save and load documents. (More precisely: some sub types, used to store lists of element in the main type have a new property) So, now, my mongodb store and my code are no longer in sync.

When I run a collection.Find() it fails with a "No matching creator found" exception.
Is there any way to specify that when a field doesn't exist in the stored documents, it should be initialized with a default value? Can't we customize the serializer we want to use?

I know that it's somehow possible in C#. I haven't looked at MongoDB.FSharp code yet but do you think it would be possible to fix that?

Thanks,

-- Pierre

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions