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

Remove withBuiltInDefinitions() and add flag to dump scalar definitions in SDL #6389

Merged
merged 3 commits into from
Feb 19, 2025

Conversation

martinbonnin
Copy link
Contributor

Turns out removing the scalar creates a lot of complexity in the code. It's just easier to have a SDL schema matching 1:1 with the introspection. This is somewhat discouraged by the spec but I think this is just that the spec is mostly written with backend frameworks in mind and didn't consider clients wanting to validate operations, etc...

@martinbonnin martinbonnin requested a review from BoD as a code owner February 19, 2025 14:40
@svc-apollo-docs
Copy link
Collaborator

svc-apollo-docs commented Feb 19, 2025

✅ Docs preview has no changes

The preview was not built because there were no changes.

Build ID: 9b3a256e03ffec9054435898

Comment on lines -21 to -28
@Test
fun typeRedefinitionInspectionIsIgnored() {
val sdlSchema = File("${CWD}/test-fixtures/sdl/type_redefinitions.graphqls")

checkExpected(sdlSchema) {
it.parseAsGQLDocument().getOrThrow().withBuiltinDefinitions().toSDL(" ")
}
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not 100% sure what this was testing. Removed it. Might add new ones later on.

Copy link
Contributor

@BoD BoD left a comment

Choose a reason for hiding this comment

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

👍

@martinbonnin martinbonnin merged commit c14229e into main Feb 19, 2025
7 checks passed
@martinbonnin martinbonnin deleted the remove-withBuiltInDefinitions branch February 19, 2025 16:45
@martinbonnin martinbonnin self-assigned this Feb 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants