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(gatsby): fix schema printing for gatsby-transformer-json #35098

Merged
merged 2 commits into from
Mar 10, 2022

Conversation

pieh
Copy link
Contributor

@pieh pieh commented Mar 10, 2022

Description

This adjust our InternalTypes list for schema printing and removes wrong Json type from it

Related Issues

Fixes #34610

@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label Mar 10, 2022
@pieh pieh added topic: GraphQL Related to Gatsby's GraphQL layer and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels Mar 10, 2022
@@ -342,20 +343,13 @@ export const printTypeDefinitions = ({
}

const internalTypes = [
`Boolean`,
...builtInScalarTypeNames,
`Buffer`,
Copy link
Contributor Author

@pieh pieh Mar 10, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this PR I essentially just dropped Json from the list, but we still have some questionable type names here - in particular Buffer is raising my eyebrow. For now leaving it as I don't quite understand the reason for it + it doesn't seem to cause problems (yet)

@pieh pieh merged commit 796800f into master Mar 10, 2022
@pieh pieh deleted the fix/adjust-schema-printing-internal-type-list branch March 10, 2022 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic: GraphQL Related to Gatsby's GraphQL layer
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Parallel query running fails when querying JSON with custom type name
2 participants