graphql-tools
graphql-tools copied to clipboard
:wrench: Utility library for GraphQL to build, stitch and mock GraphQL schemas in the SDL-first approach
**Is your feature request related to a problem? Please describe.** During testing, I need to make sure certain requests are being called with specific variables, similar to how you'd assert...
**Describe the bug** When `TransformQuery` is used with a too generic `path` which might also match an attribute in the subtree, users get unexpected results when using fragments: For example...
**Describe the bug** Interface with unions in an imported file is not recognized. **To Reproduce** Steps to reproduce the behavior: https://codesandbox.io/s/blissful-black-xsud2 **Expected behavior** The schema should be parsed correctly. **Environment:**...
**Describe the bug** The `wrapSchema` function transforms the response when error path is not provided. Currently, `@apollo/gateway` doesn't provide this top-level path, so when we wrap a federated graph, responses...
When hoisting a field and the path to the field contains a list the resulting schema ignores that there was a list in the path. **To Reproduce** Given the following...
E.g. https://www.graphql-tools.com/docs/schema-merging should have instructions for installing `@graphql-tools/schema` https://www.graphql-tools.com/docs/schema-loading should have instructions for installing `@graphql-tools/load` etc
**Describe the bug** A schema that is explicitly assumed to be validated using the `assumeValid` flag or a schema that has actually been validated is marked as such using an...
### Discussed in https://github.com/ardatan/graphql-tools/discussions/4056 Originally posted by **guifeliper** December 27, 2021 ### Setup: We have the following code for stitching the remote schemas; they are perfectly working. ``` const makeGatewaySchema...
**Problem description.** Hello! I'm rewriting my app from common js to es6 modules. So I have to move from loadFileSync to async loadFile to import my schemas and resolvers. The...
**Describe the bug** When using default export import comment like this `#import "./ProfileForm.graphql"` works perfectly fine, but when we add a space before `import` and after `#` there is an...