Skip to content

Commit 401e6ab

Browse files
committed
Add @links
1 parent b3a33c3 commit 401e6ab

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

packages/web/docs/src/content/specs/link-specifications.mdx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,16 @@ import explorerMetadataFilterImage from '../../../public/docs/pages/specs/link-s
8686
#### Usage
8787

8888
```graphql
89-
extend schema @meta(name: "owner", content: "noreply@the-guild.dev")
89+
extend schema
90+
@link(url: "https://specs.apollo.dev/link/v1.0")
91+
@link(url: "https://specs.apollo.dev/federation/v2.3")
92+
@link(url: "https://specs.graphql-hive.com/hive/v1.0", import: ["@meta"])
93+
@meta(name: "owner", content: "noreply@the-guild.dev")
94+
95+
directive @meta(
96+
name: String!
97+
content: String!
98+
) repeatable on SCHEMA | OBJECT | INTERFACE | FIELD_DEFINITION
9099

91100
type Query {
92101
user: User @meta(name: "domain", content: "accounts") @meta(name: "priority", content: "tier-1")

0 commit comments

Comments
 (0)