Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: remove public Query field from go generated types (#6849)
* fix: remove public Query field from go generated types This could cause name clashes and was annoying. Thankfully, there's only one legitimate need for this field to be public - interfaces. We can provide a workaround for this with the new `WithGraphQLQuery` method on generated types, which resets the underlying type, and sets the query. Signed-off-by: Justin Chadwell <me@jedevc.com> * fix: explicitly handle WithGraphQLQuery on top-level Client Signed-off-by: Justin Chadwell <me@jedevc.com> --------- Signed-off-by: Justin Chadwell <me@jedevc.com>
- Loading branch information
Showing
5 changed files
with
774 additions
and
562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.