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

ensure scalars are wired up if no existing wiring #382

Merged
merged 1 commit into from
Feb 16, 2024

Conversation

craig-day
Copy link
Contributor

Fixes #380

This restructures the scalar transformation logic to ensure that both the type definition and wiring are added correctly if necessary. This allows consumers to define the scalars in their schema, but not assign runtime wiring. This can be nice to support other tools like linters or graphql-faker that require the schema to be a valid schema file.

@apollo-cla
Copy link

@craig-day: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/

@dariuszkuc dariuszkuc merged commit d730ff5 into apollographql:main Feb 16, 2024
3 checks passed
@dariuszkuc dariuszkuc added change: patch Bug fixes type: bug Something isn't working labels Feb 16, 2024
@craig-day craig-day deleted the v2-transformer branch February 16, 2024 20:23
dariuszkuc pushed a commit that referenced this pull request Oct 11, 2024
Fixes #380

This restructures the scalar transformation logic to ensure that both
the type definition and wiring are added correctly if necessary. This
allows consumers to define the scalars in their schema, but not assign
runtime wiring. This can be nice to support other tools like linters or
graphql-faker that require the schema to be a valid schema file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
change: patch Bug fixes type: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Federation scalars declared in the schema file don't get wired up by the transformer
3 participants