File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
packages/web/docs/src/content/api-reference Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -234,8 +234,17 @@ hive schema:publish \
234
234
235
235
#### Metadata
236
236
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 ) .
239
248
240
249
To attach metadata to your published schema, you can use ` --metadata ` flag when publishing.
241
250
@@ -262,6 +271,7 @@ hive schema:publish \
262
271
** Further reading:**
263
272
264
273
- [ Fetching Hive Metadata from the CDN] ( /docs/high-availability-cdn )
274
+ - [ Using the @meta Link Specification] ( /docs/specs/link-specifications#meta )
265
275
266
276
### Check a Schema
267
277
You can’t perform that action at this time.
0 commit comments