Trying to test the new Apollo Federation 2 and followed the documentation as specified.
To create a 'true' federation 2 subgraph, the docs ask to put the following in the typedef:
extend schema
@link(
url: "https://specs.apollo.dev/federation/v2.0"
import: ["@key", "@shareable"]
)
Unfortunately, this addition didn't work for me as I got the following error:
GraphQLSchemaValidationError: Unknown directive "@link".
GraphQLError: Unknown directive "@link".
Library versions:
@apollo/subgraph 0.4.0
apollo-server 3.6.7
graphql 16.3.0