بنقرة واحدة
hive-mapping
Schema mappings for auto-syncing embedded documents
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Schema mappings for auto-syncing embedded documents
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
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
استنادا إلى تصنيف SOC المهني
| 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