当我将现有的 GrpahqlSchema 传递给时buildFederatedSchema
,我遇到了错误
Cannot read property 'kind' of undefined
这是因为当我将 GrpahqlSchema 传递给 buildFederatedSchema 时,它的验证失败。
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)
在这个https://github.com/apollographql/apollo-server/pull/3013上有一个公开的 PR 。有没有其他选择?