Skip to content

Figure out correct saga data field names #6

Open
@mookid8000

Description

@mookid8000

Because MongoDB's BSON serializer is global, there's a chance (risk!) that any conventions applied at a global level will apply to how sagas are serialized. Also, this might actually be what the user wants 🙂

BUT it poses a problem e.g. when using camel-cased field names in BSON, because Rebus will e.g. be querying for a field named CorrelationId, which is the name in the C# class, but in BSON it's represented as correlationId.

By doing an initial dummy-serialization of an empty instance of the saga data type, it might be possible to deduce the actual resulting field names corresponding to the saga's fields (at least if it's only the casing that's changed).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions