forcedotcom / forcedotcom/go-soql

Support Embedded Structs

Open
#39 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
53
Forks
12
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.