Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Embedded Structs #39

Open
gbdubs opened this issue Apr 20, 2023 · 0 comments
Open

Support Embedded Structs #39

gbdubs opened this issue Apr 20, 2023 · 0 comments

Comments

@gbdubs
Copy link

gbdubs commented Apr 20, 2023

If you have a parent struct that has an embedded child struct, the fields of the child struct will not get their SOQL fields marshaled.

type Parent struct {
   Child
}
type Child struct {
   Field string `soql:"selectColumn,fieldName=My_Field__c"`
}

Marshalling a query including the parent will omit Field despite it being a directly accessible member of Parent. I believe this is incongruous with how JSON serialization works in Golang.

I'd be happy to pick this up as an external contribution with a few pointers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant