en un clic
hive-mapping
Schema mappings for auto-syncing embedded documents
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Menu
Schema mappings for auto-syncing embedded documents
Installer avec Codex ou Claude Copiez ce prompt, collez-le dans Codex, Claude ou un autre assistant, puis laissez-le vérifier la page du skill et l'installer pour vous.
Basé sur la classification professionnelle SOC
Hive framework structure and conventions. Apply when working with this codebase.
How to create external services in Hive framework
How authentication works in Hive framework
Database operations in Hive framework
How to create API endpoints in Hive framework
How to create event handlers in Hive framework
| name | hive-mapping |
| description | Schema mappings for auto-syncing embedded documents |
| globs | ["src/autoMap/schemaMappings.json"] |
| alwaysApply | false |
Auto-sync embedded references when source documents change.
Location: /src/autoMap/schemaMappings.json
user: { _id, fullName })schemaMappings.json{
"tasks": {
"user": {
"schema": "users"
},
"project": {
"schema": "projects"
}
}
}
Means: In tasks collection, fields user and project reference users and projects collections.
Schema with embedded reference:
// tasks.schema.js
project: z
.object({
_id: z.string(),
name: z.coerce.string().nullable().optional(),
logoUrl: z.coerce.string().nullable().optional(),
})
.nullable()
.optional(),
Mapping config:
{
"tasks": {
"project": {
"schema": "projects"
}
}
}
Result: When project's name or logoUrl changes, all tasks with that project update automatically.
schemaMappings.json:{
"yourResource": {
"fieldName": {
"schema": "sourceSchema"
}
}
}
updated event