In addition to several new features and bugfixes, along with this release comes reorganized documentation for genqlient. Note that genqlient now requires Go 1.20 or higher, and is tested through Go 1.22.
In addition to several new features and bugfixes, along with this release comes reorganized documentation for genqlient. Note that genqlient now requires Go 1.20 or higher, and is tested through Go 1.22.
New features:
The new optional: generic allows using a generic type to represent optionality. See the documentation for details.
For schemas with enum values that differ only in casing, it's now possible to disable smart-casing in genqlient.yaml; see the documentation for casing for details.
genqlient now supports .graphqls and .gql file extensions for schemas and queries.
More accurately guess the package name for generated code (and warn if the config option -- now almost never needed -- looks wrong).
Bug fixes:
Negative pointer directives, i.e., # @genqlient(pointer: false) are now respected even in the when optional: pointer is set in the configuration file.
Made name collisions between query/mutation arguments and local function variables less likely.
Fix generation issue related to golang type implementation of complex graphql union fragments.
Bind correctly to types in the same package as the generated code.
Fix non-deterministic generated code when querying graphql interfaces via named fragments.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/Khan/genqlient from 0.6.0 to 0.7.0.
Release notes
Sourced from github.com/Khan/genqlient's releases.
Changelog
Sourced from github.com/Khan/genqlient's changelog.
Commits
83d2f25
Release v0.7.0 (#324)9f8e2b2
Fix non-deterministic generated code involving interfaces and fragments. (#323)ae275ac
Reorganize and improve documentation (#322)5bdd7fd
Improve package-sniffing and bind correctly to types in the same package (#316)662ca8f
move genqlient Go module to 1.20 (#318)4afbe4b
Update gqlgen to latest (#317)9ddd26f
Add tests on Go 1.22, and upgrade x/tools to make them work (#315)7740a6a
Support more valid graphql file extensions (#309)c14574a
fix implementation type generation for fragment on a union (#310)20a8c5e
Upgrade golangci-lint and which go we run it with (#314)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show