Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
0.0.12
-
None
-
None
Description
Using a struct with a string as the ObjectId field, the ObjectId is not decoded.
This is useful in a case where you create a database abstraction and dont want to keep an ObjectId in your objects but rather a generic type like a string.
If you ever want to switch to another database, you would just have to change the model layer, not the entire code.
Attachments
Issue Links
- is related to
-
GODRIVER-549 Add ObjectID struct tag for strings
-
- Backlog
-