You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if create a ModelA but leave target field empty, when try to save the document, error occured: ObjectIDs must be exactly 12 bytes long (got 0). So, maybe need add something like this:
Target bson.ObjectId `sparse:"true"`
?
The text was updated successfully, but these errors were encountered:
Problem:
if create a
ModelA
but leavetarget
field empty, when try to save the document, error occured:ObjectIDs must be exactly 12 bytes long (got 0)
. So, maybe need add something like this:?
The text was updated successfully, but these errors were encountered: