with one click
hive-mapping
Schema mappings for auto-syncing embedded documents
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Schema mappings for auto-syncing embedded documents
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
| 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 eventHive 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