Skip to content

Automatically fills Go default values #117

@jiangz222

Description

@jiangz222

If insert document with field of slice type without initialization, filed will be null in MongoDB, which may cause operation error(e.g. $push to null error).
Qmgo can initial fields to default value as mgo does.
We can Implement this in package field.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions