You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. The issue provides a reproduction available on Github, Stackblitz or CodeSandbox
Make sure to fork this template and run yarn generate in the terminal.
Please make sure the GraphQL Tools package versions under package.json matches yours.
2. A failing test has been provided
3. A local solution has been provided
4. A pull request is pending review
Describe the bug
if I pass a directive in typeDefs to makeExecutableSchema named @tostring it fails saying TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at mergeDirective
If I change the toString to something like toBoolean it works so it seems to just be "toString"
To Reproduce Steps to reproduce the behavior:
const schema = makeExecutableSchema({
typeDefs: `
directive @toString on FIELD_DEFINITION | FIELD
type Something {
foo: String
}`
});
Researching it but I think it might be happening because it's a method on the Object prototype in mergedResultMap on mergeGraphQLNodes.
Issue workflow progress
Progress of the issue based on the
Contributor Workflow
Describe the bug
if I pass a directive in typeDefs to makeExecutableSchema named @tostring it fails saying
TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at mergeDirective
If I change the toString to something like toBoolean it works so it seems to just be "toString"
To Reproduce Steps to reproduce the behavior:
Researching it but I think it might be happening because it's a method on the Object prototype in mergedResultMap on mergeGraphQLNodes.
https://codesandbox.io/p/devbox/brave-visvesvaraya-49xx8m
Expected behavior
Should be able to create a schema with a toString directive
Environment:
@graphql-tools/...
:Additional context
The text was updated successfully, but these errors were encountered: