[GODRIVER-391] Flatten anonymous struct Created: 29/Apr/18  Updated: 22/Dec/23  Resolved: 08/May/18

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Thomas Geulen Assignee: Kristofer Brandow (Inactive)
Resolution: Works as Designed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
backports GODRIVER-3077 Anonymous Embed struct field should b... Investigating

 Description   

Would it make sense to change the document encoder so that anonymous structs get flatten within the root object?

 



 Comments   
Comment by 胜宏 舒 [ 20/Dec/23 ]

the Anonymous Embed struct field should be flattened default, i really don't want to add a bson tag for this

Comment by Kristofer Brandow (Inactive) [ 08/May/18 ]

No problem, please do file more tickets if you find bugs or desire new features or improvements!

Thanks,

Kris

Comment by Thomas Geulen [ 08/May/18 ]

Hi Kris,

sorry, I was not aware of this. It works for me.

You should close this one here.

Comment by Kristofer Brandow (Inactive) [ 30/Apr/18 ]

Hi Thomas,

The inline struct tag should accomplish this task for you. Let me know if that isn't doing what you expect.

 

--Kris

Generated at Thu Feb 08 08:34:06 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.