Open RoyLeibo opened 2 years ago
Sorry for the late reply.
If I were to guess, I think it's because the schema you pasted doesn't define Mutation
or Query
, but rather only extends them.
I was going to suggest defining empty types in the same file you define @key
, but unfortunately that wouldn't be valid either. đŸ¤”
I'll have to think about this a bit, but unfortunately, this validation error comes from GraphQL.js which graphql-schema-linter
uses to parse schemas.
We are developing micro-services in NestJS-typescript, Each of them exposes a GraphQL schema. In order to expose a single graph, we are using a federation service, also in NestJS.
I was trying to integrate with '@graphql-eslint/eslint-plugin' and some strange exceptions were thrown:
Those errors were solved following a GitHub issue: https://github.com/cjoudrey/graphql-schema-linter/issues/210
I have created a new file with the type specifications according to the Apollo documentation: https://www.apollographql.com/docs/federation/federation-spec/#federation-schema-specification
After solving this issue, I am getting few more errors that I have no idea what they mean and how to solve them:
This is my schema:
Does anyone have an idea why I am getting those errors?