[GODRIVER-937] BSON Marshaller ignores fields of an embedded structure of the schema Created: 08/Apr/19 Updated: 09/Apr/19 Resolved: 09/Apr/19 |
|
| Status: | Closed |
| Project: | Go Driver |
| Component/s: | BSON |
| Affects Version/s: | 1.0.0 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alexey Nosov | Assignee: | Kristofer Brandow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 18.04 amd64 |
||
| Description |
|
I declare schemas. For example:
When I try to load an instance of Main structure from the database, e.g.:
|
| Comments |
| Comment by Kristofer Brandow (Inactive) [ 09/Apr/19 ] | |||||||
|
Glad I could help! | |||||||
| Comment by Alexey Nosov [ 09/Apr/19 ] | |||||||
|
Thank you very much! It works perfectly. | |||||||
| Comment by Kristofer Brandow (Inactive) [ 08/Apr/19 ] | |||||||
|
devoter, If you want to properly embed this struct, you'll need to use an inline tag, like so:
--Kris |