Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically fills Go default values #117

Open
jiangz222 opened this issue Oct 21, 2020 · 3 comments
Open

Automatically fills Go default values #117

jiangz222 opened this issue Oct 21, 2020 · 3 comments
Labels
feature new feature

Comments

@jiangz222
Copy link
Collaborator

jiangz222 commented Oct 21, 2020

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.

@lifegit
Copy link

lifegit commented Jun 7, 2021

excuse me, can you tell me how to use it?

@lifegit
Copy link

lifegit commented Jun 7, 2021

install slice is null, hope []

@lifegit
Copy link

lifegit commented Jun 7, 2021

@jiangz222 worry... thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new feature
Projects
None yet
Development

No branches or pull requests

2 participants