スキル一覧に戻る
paralect

hive-mapping

by paralect

0🍴 0📅 2026年1月18日
GitHubで見るManusで実行

SKILL.md


name: hive-mapping description: Schema mappings for auto-syncing embedded documents globs:

  • src/autoMap/schemaMappings.json alwaysApply: false

Schema Mappings

Auto-sync embedded references when source documents change.

Location: /src/autoMap/schemaMappings.json

How It Works

  1. You embed document references in schemas (e.g., user: { _id, fullName })
  2. You register the mapping in schemaMappings.json
  3. When source document updates, all referencing documents sync automatically

Config Format

{
  "tasks": {
    "user": {
      "schema": "users"
    },
    "project": {
      "schema": "projects"
    }
  }
}

Means: In tasks collection, fields user and project reference users and projects collections.

Example

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.

Adding New Mapping

  1. Define embedded reference in schema (include fields to sync)
  2. Add entry to schemaMappings.json:
{
  "yourResource": {
    "fieldName": {
      "schema": "sourceSchema"
    }
  }
}

Rules

  • Only fields defined in the embedded object shape are synced
  • Works for both single references and arrays
  • Changes sync on source document updated event

スコア

総合スコア

50/100

リポジトリの品質指標に基づく評価

SKILL.md

SKILL.mdファイルが含まれている

+20
LICENSE

ライセンスが設定されている

0/10
説明文

100文字以上の説明がある

0/10
人気

GitHub Stars 100以上

0/15
最近の活動

3ヶ月以内に更新がある

0/10
フォーク

10回以上フォークされている

0/5
Issue管理

オープンIssueが50未満

+5
言語

プログラミング言語が設定されている

+5
タグ

1つ以上のタグが設定されている

0/5

レビュー

💬

レビュー機能は近日公開予定です