This change introduces the ability for goql to fall-back to using json struct tag field names (via an option). By supporting this, we'll be able to use the models generated by gqlgen in our repositories automatically with goql, essentially allowing us to get a complete golang GraphQL client "for free" in each service that's using gqlgen.
Jira ID
No jira for this, I noticed this was missing on my own and I know it'll make a big difference to have this, so I made the change myself.
What this PR does / why we need it
This change introduces the ability for
goql
to fall-back to usingjson
struct tag field names (via an option). By supporting this, we'll be able to use the models generated bygqlgen
in our repositories automatically withgoql
, essentially allowing us to get a complete golang GraphQL client "for free" in each service that's usinggqlgen
.Jira ID
No jira for this, I noticed this was missing on my own and I know it'll make a big difference to have this, so I made the change myself.
Notes for your reviewers