Skip to content

UnmarshalBSON and MarshalBSON serialization  #165

Open
@1140251

Description

@1140251

when saving to mongodb with mongo go driver, the decimal.Big is created with an empty context only.
Maybe you don't want this dependency, but how can serialize this?

As a workaround I'm saving as Float64 and converting to decimal.Big when performing operations, but is not the most eloquent way for me.

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