Skip to content

Commit 09a78fc

Browse files
authored
docs: add info for how @meta directive works (#6648)
1 parent 799eb03 commit 09a78fc

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

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

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,5 +83,15 @@ import explorerMetadataFilterImage from '../../../public/docs/pages/specs/link-s
8383
className="mt-10 max-w-2xl rounded-lg drop-shadow-md"
8484
/>
8585

86+
#### Usage
87+
88+
`@meta` can be applied to schemas, types, interfaces, and fields. A field's metadata is a union of
89+
all applied metadata. This is applied using the following rules:
90+
91+
1. meta on a schema applies to every field in the schema.
92+
2. meta on a type applies to every field in that exact type.
93+
3. meta on an interface applies to every field in that interface on every implemented type.
94+
4. meta on a field applies only to that field for that type.
95+
8696
</Tabs.Tab>
8797
</Tabs>

0 commit comments

Comments
 (0)