graphql-tools
graphql-tools copied to clipboard
:wrench: Utility library for GraphQL to build, stitch and mock GraphQL schemas in the SDL-first approach
**Describe the bug** Schema: ```gql enum Color { Red @deprecated(reason: "Blue is better") Blue } ``` Whenever my graphql code gen gives me `GraphQLSchema` object (I think from the `File/UrlLoader`)...
**Describe the bug** When adding an already defined directive through an extension statement, it appears that `mergeTypeDefs` attempts to merge the arguments of duplicated directives if the original was of...
**Describe the bug** When specifying an additional directive in an extension statement, all directives of the same name are merged into one, with the arguments merged for list types. This...
**Is your feature request related to a problem? Please describe.** Currently `stitchingDirectivesValidator` doesn't allow to use `@merge` directive without `keyArg` argument if resolver takes 0 arguments. **Describe the solution you'd...
**The Bug** Using `load-files` causes circular dependencies warnings to be triggered. **To Reproduce** Consider having a project with the following structure: ``` project/ ├── app.js ├── resolvers/ │ ├── resolver1.js...
**Describe the bug** When I type check my project with @graphql-tools/[email protected] and [email protected], I get this output: ``` node_modules/@graphql-tools/links/GraphQLUpload.d.ts:2:30 - error TS2315: Type 'GraphQLScalarType' is not generic. 2 declare const...
**Describe the bug** When calling `wrapSchema` on a schema, the resulting schema breaks when input types provided by a variable are nested inside input types provided in the query directly,...
**Describe the bug** When I execute operation on `stitchSchemas` it doesn't forward `operationName` to underlying schemas. We use `operationName` for logs. **To Reproduce** Steps to reproduce the behavior: https://codesandbox.io/s/naughty-franklin-b4cwd?file=/src/index.ts **Expected...
`wrapSchema` usually results in bad performance as it generates a proxy schema. From looking at https://www.graphql-tools.com/docs/schema-wrapping it is unclear to me which use-cases I might wanna use `wrapSchema` and what...
**Is your feature request related to a problem? Please describe.** Version 7.1.5 and earlier had a useful transform `AddArgumentsAsVariables`, which was removed, apparantly without a good replacement. **Describe the solution...