Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support generating correct types for
@oneOf
input types (#7886)
* feat: support generating correct types for `@oneOf` input types * fix: compatibility with type-graphql plugin + stricter TypeScript annotations * feat: make types more friendly for implementing resolver functions * fix: ensure the required key cannot be undefined * fix: apply oneOf constraints and support the .isOneOf property on input object types * fix: remove MaybeInput wrapper from input field types * chore: remove unused code * Apply suggestions from code review * put stuff int the cache
- Loading branch information
Showing
6 changed files
with
215 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@graphql-codegen/visitor-plugin-common': minor | ||
'@graphql-codegen/typescript': minor | ||
--- | ||
|
||
support the `@oneOf` directive on input types. |
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
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
c3d7b72
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
graphql-code-generator – ./
graphql-code-generator.vercel.app
graphql-code-generator-theguild.vercel.app
www.graphql-code-generator.com
graphql-code-generator.com
graphql-code-generator-git-master-theguild.vercel.app
www.graphql-codegen.com
graphql-codegen.com