When I passing existing GrpahqlSchema to buildFederatedSchema
, I am getting below error
Cannot read property 'kind' of undefined
This is because when I pass GrpahqlSchema to buildFederatedSchema it is failing at its validations.
at Object.validateSDL (/Users/alti/Projects/woundtech/woundtech-fhir-graphql/node_modules/graphql/validation/validate.js:62:24)
at Object.buildSchemaFromSDL (/Users/alti/Projects/woundtech/woundtech-fhir-graphql/node_modules/apollo-graphql/lib/schema/buildSchemaFromSDL.js:36:31)
at buildFederatedSchema (/Users/alti/Projects/woundtech/woundtech-fhir-graphql/node_modules/@apollo/federation/dist/service/buildFederatedSchema.js:32:35)
There is an open PR on this https://github.com/apollographql/apollo-server/pull/3013. Is there any alternative to this?