Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix undefined types when omitted from GraphQL #8300

Merged
merged 2 commits into from
Feb 13, 2023
Merged

Conversation

dcousens
Copy link
Member

As is, if you use graphql.omit, some printed Typescript types will not be defined, but they are still printed.
This pull request fixes that by not printing the types if they are not defined.

@changeset-bot

This comment was marked as resolved.

@vercel
Copy link

vercel bot commented Feb 13, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
keystone-next-docs ✅ Ready (Inspect) Visit Preview Feb 13, 2023 at 6:32AM (UTC)

@dcousens dcousens added the 🐛 bug Unresolved bug label Feb 13, 2023
@dcousens dcousens self-assigned this Feb 13, 2023
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 8e3a942:

Sandbox Source
@keystone-6/sandbox Configuration

@dcousens
Copy link
Member Author

This pull request has additionally revealed a soft spot, that we don't have tests for our printed Typescript types.
We should fix that.

@dcousens dcousens merged commit 7ebc68e into main Feb 13, 2023
@dcousens dcousens deleted the fix-graphql-is-enabled branch February 13, 2023 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug Unresolved bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants