后端与数据库

swiftdata

prisma-labs-dev/apple-skills

API reference: SwiftData. Query for @Model, ModelContext, @Query, schema migrations.

  • 492 次安装
  • 350 星标
  • 收录于

安装命令

npx skills add https://github.com/prisma-labs-dev/apple-skills --skill swiftdata

SKILL.md

SwiftData Documentation

Search these docs to answer questions about SwiftData APIs.

Return Format

Always include:

  1. Summary - Answer the question concisely
  2. File paths - List relevant files for full details, e.g.:
    • swiftdata-model.md for @Model macro
    • swiftdata-query.md for @Query usage

Files

  • swiftdata-index.md - Framework overview and all available APIs
  • swiftdata-model.md - @Model macro and model definition
  • swiftdata-modelcontext.md - ModelContext for CRUD operations
  • swiftdata-query.md - @Query property wrapper for fetching data