One-click install
npx skills add https://github.com/wenerme/ai --skill mikroorm-docs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mikroorm-docs
Source: https://github.com/wenerme/ai/tree/main/skills/mikroorm-docs
Command: npx skills add https://github.com/wenerme/ai --skill mikroorm-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you quickly find correct MikroORM v7 guidance for designing entities, relationships, queries, migrations, and upgrade paths without manually searching the entire documentation.

Core Features & Use Cases

  • Entity Modeling (v7): Understand and implement entity definitions including decorators and the defineEntity/EntitySchema approach.
  • Relationships & Loading: Learn one-to-one, one-to-many, many-to-one, many-to-many patterns, reference vs collection loading, and populate strategies.
  • Data Access & Advanced Querying: Use the MikroORM EntityManager and the (Kysely-based) query builder concepts, including filters and raw querying.
  • Migrations, Seeding, and Configuration: Find how to handle schema generation, migrations, seeding, transactions, caching, embeddables, and inheritance mapping.
  • Upgrading v6 to v7: Get guidance on key breaking changes and migration steps.

Quick Start

Ask for MikroORM v7 help with defining an entity relationship and the correct populate strategy for a specific query scenario.

Frequently Asked Questions about mikroorm-docs

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I define entities in MikroORM v7?

MikroORM v7 entities can be defined using traditional decorators or the defineEntity/EntitySchema approach for structured modeling. It provides context-grounded instructions for designing database schemas accurately in TypeScript and Node.js.

What's the best way to configure migrations and seeding in MikroORM?

MikroORM migrations and seeding are configured through schema generation tools. Access the provided v7 documentation references to get accurate guidance on handling schema generation, seeding, transactions, and caching configurations.

How does relationship mapping and populate strategy work in MikroORM v7?

MikroORM v7 relationship mapping covers one-to-one, one-to-many, many-to-one, and many-to-many patterns. It guides choosing between reference and collection loading, and specific populate strategies to optimize data fetching for queries.

How do I upgrade from MikroORM v6 to v7?

Upgrading from MikroORM v6 to v7 requires following specific migration steps to handle key breaking changes. The documentation provides targeted upgrade guidance to transition TypeScript entity modeling and querying logic smoothly.

Can I use a query builder with MikroORM EntityManager?

Yes, the MikroORM EntityManager supports advanced data access using a Kysely-based query builder. You can execute complex queries, apply filters, and perform raw querying directly within your TypeScript application.

Does MikroORM v7 support TypeScript and Node.js?

Yes, MikroORM v7 fully supports TypeScript and Node.js environments. It resolves entity modeling, relationship mapping, and querying questions specifically tailored for TypeScript and Node.js application workflows.