prisma-relations-mapping

Community

Fix Prisma relations after PascalCase migration.

Authorvperreard
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Prisma relation names become PascalCase after migration, while frontend code and API contracts expect camelCase, leading to runtime errors and data-mapping gaps.

Core Features & Use Cases

  • Complete PascalCase-to-camelCase mapping guidance for all models (post-migration, 121 models).
  • Guidelines for include, select, and nested relation mappings in API routes to prevent undefined or 500 errors.
  • Reusable mapping patterns and templates to align backend Prisma results with frontend expectations.

Quick Start

Review the mapping tables and implement API-level mappers to convert PascalCase relations to camelCase before sending responses to clients.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: prisma-relations-mapping
Download link: https://github.com/vperreard/Mathildanesth/archive/main.zip#prisma-relations-mapping

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.