Issue workflow progress
Progress of the issue based on the
Contributor Workflow
Describe the bug
@graphql-tools/utils allowed to override built-in scalars with mapSchema until #5294.
We caught that thanks to our tests when we updated to the latest version.
I'm a bit surprised that this behavioural breaking change got flagged as a patch change in the release notes (https://the-guild.dev/graphql/tools/changelogs/utils).
To Reproduce Steps to reproduce the behavior:
export function overrideIDScalar(schema: GraphQLSchema): GraphQLSchema {
return mapSchema(schema, {
[MapperKind.SCALAR_TYPE]: (type) => {
if (type.name === 'ID') {
return customIDScalar
}
return type
},
})
}
Expected behavior
The ID built-in scalar in the executable schema points to the custom scalar.
Environment:
- OS: Windows for local dev, Linux when deployed
@graphql-tools/utils: 10.11.0
- NodeJS: 22.14.0
Additional context
I'm not expecting that the library will revert to the original behaviour, but an issue will hopefully help others in the same situation.
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
Describe the bug
@graphql-tools/utils allowed to override built-in scalars with
mapSchemauntil #5294.We caught that thanks to our tests when we updated to the latest version.
I'm a bit surprised that this behavioural breaking change got flagged as a patch change in the release notes (https://the-guild.dev/graphql/tools/changelogs/utils).
To Reproduce Steps to reproduce the behavior:
Expected behavior
The ID built-in scalar in the executable schema points to the custom scalar.
Environment:
@graphql-tools/utils: 10.11.0Additional context
I'm not expecting that the library will revert to the original behaviour, but an issue will hopefully help others in the same situation.