apollographql / apollographql/vscode-graphql
Does not recognize directives from federation v2.11
- Dominant language
- TypeScript
- Stars
- 78
- Forks
- 23
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to use the new v0.2 connectors specification in VS Code. I have followed the directions specified in [Version Requirements - Apollo GraphQL Docs](https://www.apollographql.com/docs/graphos/connectors/getting-started/version-requirements) and [Apollo Connectors Changelog - Apollo GraphQL Docs](https://www.apollographql.com/docs/graphos/connectors/reference/changelog).
When I add the specification for federation v2.11 for the `@key` directive in the schema as shown below, the extension displays an error indicating that the `@key` directive cannot be found.
```
extend schema
@link(
url: "https://specs.apollo.dev/federation/v2.11",
import: ["@key"]
)
```
When I change the specification to v2.10 then the error goes away.
I suspect this is an issue with the extension and not the documentation because when I run these connectors with rover, I do not get any errors and the query completes successfully respecting the entity definition.
I have tried the extension on both Linux and Windows machines and get the same error in both.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the error in the VS Code extension with the schema shown in the issue, then compare federation v2.11 with v2.10 and verify the behavior against the linked Apollo documentation. Done means the extension recognizes the imported @key directive for federation v2.11 without reporting an error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100