-
Notifications
You must be signed in to change notification settings - Fork 398
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Federation 2: Generated Schema does not contain directives #2606
Comments
Could this be connected with this issue #2559? |
Unlikely. I think the problem is the difference between the schema that gets returned on introspection to the gateway which is correct and has the directives and the schema that gets printed out which doesn’t. I’m probably looking for flag that allows to add the Federation directives to the generated schema file or optionally generate two files one with and one without. |
Similar issue:
node -v v18.12.1 devDependencies
dependencies
Module Import
Model contain @directive('@key(fields: "id")') GQL Generated ... directive @OverRide(from: String!) on FIELD_DEFINITION type User { |
Please search through some of our old issues on this (this has been discussed several times in the past). |
Is there an existing issue for this?
Current behavior
Generated federation 2 schema does not contain federation 2 directives (@link, @key, etc.)
Minimum reproduction code
https://github.com/sshevlyagin/graphql/tree/ss-federation2-schema
Steps to reproduce
Run
tests:e2e:fed2
underpackages/apollo/package.json
in this branchhttps://github.com/sshevlyagin/graphql/tree/ss-federation2-schema
After tests run examine content of
packages/apollo/schema-generated.graphql
.Expected behavior
Expected:
Actual:
Package version
10.1.7
Graphql version
graphql
:16.6apollo-server-express
: 3.5.0apollo-server-fastify
: 3.5.0NestJS version
9.0.0
Node.js version
14
In which operating systems have you tested?
Other
No response
The text was updated successfully, but these errors were encountered: