prisma-client-api

Generate Prisma 7.x Client queries for CRUD, filtering, pagination, and transactions.

Updated Mar 27, 2026
One-click install
npx skills add https://github.com/quanngynx/GDGO-2026.Servexa-Warranty-AI --skill prisma-client-api-quanngynx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: prisma-client-api
Source: https://github.com/quanngynx/GDGO-2026.Servexa-Warranty-AI/tree/main/servexa-warranty-ai/.cursor/skills/prisma-client-api
Command: npx skills add https://github.com/quanngynx/GDGO-2026.Servexa-Warranty-AI --skill prisma-client-api-quanngynx

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

It helps you avoid mistakes and inefficiencies when writing Prisma Client database queries by giving a clear, categorized reference for model operations, query options, filters, relations, transactions, and raw SQL.

Core Features & Use Cases

  • Prisma Client query reference: Covers CRUD-style model methods (find, create, update, delete) plus aggregate and groupBy patterns.
  • Query shaping controls: Explains how to use where, select, include, omit, ordering, pagination, distinct, and cursor-based patterns.
  • Safety-aware advanced querying: Documents filter operators, relation filters, transaction usage, and $queryRaw/$executeRaw guidance.

Quick Start

Use the prisma-client-api skill to generate a Prisma query that finds active users with related posts filtered, sorted, and paginated.

Frequently Asked Questions about prisma-client-api

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

FAQPage Schema
How do I write Prisma Client queries for CRUD operations and complex filtering?

Prisma Client queries support CRUD model methods including find, create, update, delete, alongside aggregate and groupBy. You shape results using `where`, `select`, `include`, ordering, pagination, distinct, and cursor-based patterns for precise data retrieval.

What is the best way to load nested relations safely in Prisma?

Loading nested relations safely in Prisma uses `include` and `select` to fetch related data, while relation filter operators allow you to filter based on related model properties without risking invalid query structures.

How do I execute raw SQL securely using Prisma?

Executing raw SQL securely in Prisma involves using the `$queryRaw` and `$executeRaw` APIs. Following raw query safety guidance prevents SQL injection vulnerabilities while running custom database queries outside the standard Prisma Client model methods.

How does Prisma handle database transactions?

Prisma handles database transactions through dedicated transaction APIs. These allow you to execute multiple database operations sequentially or interactively, ensuring atomicity so that either all operations succeed or none are applied.

What Prisma query options are available for pagination and sorting results?

Prisma query options for pagination and sorting include `take`, `skip`, `cursor`, and `orderBy`. You can combine these with `distinct` to retrieve unique records and manage large datasets efficiently across your application.