Closed kroupacz closed 3 weeks ago
Latest commit: fed7cea3ebb868d037d2115c3acef1e4529d3e39
The changes in this PR will be included in the next version bump.
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
I am not sure whats wrong with imports from @apollo/gateway
, but tests runs ok locally.
TypeError: Cannot read properties of undefined (reading 'QUERY')
2 | import { GraphQLSchema } from 'graphql';
3 | import { createYoga } from 'graphql-yoga';
> 4 | import { ApolloGateway, IntrospectAndCompose } from '@apollo/gateway';
| ^
Hello @ardatan, here you can find failing tests for issues https://github.com/ardatan/graphql-tools/issues/6613 and https://github.com/ardatan/graphql-tools/issues/6614. Here https://github.com/ardatan/graphql-tools/pull/6620 is PR with fix for issue https://github.com/ardatan/graphql-tools/issues/6614.
Thank you in advance for your help and cooperation. Tomáš Kroupa
Thanks for creating the PRs for the issues and fixes. They are really helpful. Do you think we could re-organize it in the following way?
federation
because it does not test the specific function so it'd better to keep federation related tests under federation.So it'd be easier for us to distinguish the issues.
If you don't have time to do that, we can tackle it soon.
Tests are passing somehow. Maybe you missed something in the tests.
@ardatan Yes, because this test tests that it really fails... 😄
expect(res.data.errors).toMatchObject([
{
message: 'Cannot return null for non-nullable field TestNestedField.subgraph2.',
path: ['testNestedField', 'testUserAlias'],
},
]);
Hahaha ok :D So it succeeds with a failure :P
Thank you so much for the reproduction! I pushed the fix, I'll merge and release.
Description
This PR includes failing tests for issue #6613 - Aliased fields cannot be resolved in federated query Details can be found in https://github.com/ardatan/graphql-tools/issues/6613.
Fixes #6613
Test Environment:
@graphql-tools/federation@2.2.19
:node@20