getoutreach / goql

A GraphQL client package written in Go.
Apache License 2.0
19 stars 2 forks source link

feat: Support fallback to json struct tag names #108

Closed lelandbatey closed 7 months ago

lelandbatey commented 7 months ago

What this PR does / why we need it

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.

Notes for your reviewers

getoutreach-ci-2[bot] commented 7 months ago

:tada: This PR is included in version 1.12.0 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: