# Prisma 4.7.0 — Release & Upgrade Intelligence
- **Product:** Prisma (https://prisma.io)
- **Version:** 4.7.0
- **Released:** Nov 29, 2022
- **Impact Score:** 5/10
- **Breaking Changes:** Not verified
- **Canonical Analysis:** https://changelogs.us/prisma/updates/4.7.0/

## Executive Summary (TL;DR)
Prisma 4.7.0. Source highlight: 🌟 **Help us spread the word about Prisma by starring the repo or tweeting about the release.** 🌟

## New Features
- `model`: add custom methods or fields to your models
- `client`: add client-level methods to Prisma Client
- `result`: add custom fields to your query results
- Add `Prisma.TransactionClient` to `default-index.d.ts`
- Schema: add deprecation warning for datasource property `referentialIntegrity` (renamed to `relationMode`)
- `relationMode`: make feature GA

## Bug Fixes
- `RangeError: Invalid count value` during `npx prisma generate` with `DEBUG=*` on integration build
- Prisma Client regression bug after upgrading to 4.6.0: `findMany` errors with `PANIC: index out of bounds: the len is 0 but the index is 0`
- Bug(qe): errors don't get logged
- feat: Quick Fix - `relationMode` : missing foreign keys' indexes
- bug(fmt): quick-fixes break with no newline after model in schema

## Upgrade Command
```bash
npm install --save-dev --save-exact prisma@4.7.0
```
