Skip to content

Commit ce4ed95

Browse files
authored
docs: explain use cases for --metadata vs @meta (#6878)
1 parent f8a1350 commit ce4ed95

File tree

1 file changed

+12
-2
lines changed
  • packages/web/docs/src/content/api-reference

1 file changed

+12
-2
lines changed

packages/web/docs/src/content/api-reference/cli.mdx

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,17 @@ hive schema:publish \
234234

235235
#### Metadata
236236

237-
You can attach metadata to your schema publication. Hive metadata published to Hive must be a valid
238-
JSON, and limited to `25MB`.
237+
<Callout>
238+
For most cases, it's recommended to add metadata directly to your schema with the [@meta Link
239+
Specification](/docs/specs/link-specifications#meta) instead of using `--metadata`. Directives
240+
allow you to enhance specific parts of your schema with this important information, which can be
241+
especially useful for large projects with multiple owners.
242+
</Callout>
243+
244+
You can attach metadata to your schema publication. Metadata files published to Hive must be valid
245+
JSON and are limited to `25MB`. This metadata is not exposed in the Hive UI, but it can be useful
246+
for storing JSON configuration files for services, such as for
247+
[GraphQL Mesh](https://the-guild.dev/graphql/mesh/docs/config-reference).
239248

240249
To attach metadata to your published schema, you can use `--metadata` flag when publishing.
241250

@@ -262,6 +271,7 @@ hive schema:publish \
262271
**Further reading:**
263272

264273
- [Fetching Hive Metadata from the CDN](/docs/high-availability-cdn)
274+
- [Using the @meta Link Specification](/docs/specs/link-specifications#meta)
265275

266276
### Check a Schema
267277

0 commit comments

Comments
 (0)