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
{{ message }}
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.
You could add DecodeHook with given syntax, it would check the type both of destination type and origin type since ObjectID is an array we set the destination type to array if it match then convert the data to string and generate new ObjectID with it. Hopes it help!
When i try decode a map[string]interface {} into stuct the error return "Source data must be an array or slice, got string".
This is the code :
The error message is "* 'uid': source data must be an array or slice, got string"
The text was updated successfully, but these errors were encountered: