graphql-tools
graphql-tools copied to clipboard
allow using merge directive without keyArg argument if resolver takes 0 arguments
Description
Allows using @merge directive without keyArg argument if resolver takes 0 arguments
Related #4336
Type of change
- [x] Bug fix (non-breaking change which fixes an issue)
Checklist:
- [x] I have followed the CONTRIBUTING doc and the style guidelines of this project
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [x] My changes generate no new warnings
- [x] I have added tests that prove my fix is effective or that my feature works
- [x] New and existing unit tests and linter rules pass locally with my changes
- [ ] Any dependent changes have been merged and published in downstream modules
🦋 Changeset detected
Latest commit: 6b91b09bd1094d5deec68e48f454432452ca0d63
The changes in this PR will be included in the next version bump.
This PR includes changesets to release 2 packages
| Name | Type |
|---|---|
| @graphql-tools/stitching-directives | Patch |
| federation-benchmark | Patch |
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.
🔍 Inspect: https://vercel.com/theguild/graphql-tools/BNni3KjdepM6quL96r8baCU7xj7U
✅ Preview: Failed
[Deployment for 6b91b09 failed]
The failed test is unrelated, please rerun it
But does merging work? Do we have a test elsewhere? I think it does and we do, but offhand I am not sure where.
Hi, @yaacovCR , I did a manual test and it works. I didn't find the test so I added it, please check it
@yaacovCR well, now I can confirm that merging doesn't work well if querying not all the fields from the type. I've updated the test case to fail.