Skip to content

Does not recognize directives from federation v2.11 #294

@dcook-hsi

Description

@dcook-hsi

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 and Apollo Connectors Changelog - Apollo GraphQL Docs.

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"]
  )
Image

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions