-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 0.0.12
-
Component/s: None
-
None
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.
- is related to
-
GODRIVER-549 Add ObjectID struct tag for strings
- Closed