IssueRaiser

Return the relationship to VIEW

### Bug description please return the relations to View or give the ability to enable them. This is how I connected two schemas in one database. The second schema was used in the admin application. Now my .prisma file has errors everywhere: The field `bonus` is part of a relation that references a view. Relations currently cannot be used with views.Prisma. It's all because of Prisma Visual Studio Code Extension ### Severity 🚨 Critical: Data loss, app crash, security issue ### Reproduction <!-- Link to CodeSandbox, GitHub repo, or step-by-step instructions --> ### Expected vs. Actual Behavior I want to be able to connect view and model via relationships again ### Frequency Consistently reproducible ### Does this occur in development or production? Both development and production ### Is this a regression? <!-- e.g., "Yes, last worked in Prisma 5.1.0, broke in 5.2.0" --> ### Workaround <!-- e.g., "Downgrading to Prisma 5.1.0 fixes it" or "No workaround found" --> ### Prisma Schema & Queries ```prisma // Add relevant schema.prisma snippet ``` ```ts // Add relevant Prisma Client query ``` ### Prisma Config ```ts // Add your `prisma.config.ts` ``` ### Logs & Debug Info ``` // Debug logs here ``` ### Environment & Setup - **OS:** <!-- macOS, Windows, Debian, CentOS, etc. --> - **Database:** <!-- PostgreSQL, MySQL, PlanetScale, etc. --> - **Node.js version:** <!-- Run `node -v` --> ### Prisma Version ``` // Prisma version output ```

Posted by SonderRill on Jul 29, 2025, 3:51 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.2,000 issues0 comments

reliability (SaaS)

Return the relationship to VIEW

SonderRillJul 29, 2025, 3:51 PM

### Bug description please return the relations to View or give the ability to enable them. This is how I connected two schemas in one database. The second schema was used in the admin application. Now my .prisma file has errors everywhere: The field `bonus` is part of a relation that references a view. Relations currently cannot be used with views.Prisma. It's all because of Prisma Visual Studio Code Extension ### Severity 🚨 Critical: Data loss, app crash, security issue ### Reproduction <!-- Link to CodeSandbox, GitHub repo, or step-by-step instructions --> ### Expected vs. Actual Behavior I want to be able to connect view and model via relationships again ### Frequency Consistently reproducible ### Does this occur in development or production? Both development and production ### Is this a regression? <!-- e.g., "Yes, last worked in Prisma 5.1.0, broke in 5.2.0" --> ### Workaround <!-- e.g., "Downgrading to Prisma 5.1.0 fixes it" or "No workaround found" --> ### Prisma Schema & Queries ```prisma // Add relevant schema.prisma snippet ``` ```ts // Add relevant Prisma Client query ``` ### Prisma Config ```ts // Add your `prisma.config.ts` ``` ### Logs & Debug Info ``` // Debug logs here ``` ### Environment & Setup - **OS:** <!-- macOS, Windows, Debian, CentOS, etc. --> - **Database:** <!-- PostgreSQL, MySQL, PlanetScale, etc. --> - **Node.js version:** <!-- Run `node -v` --> ### Prisma Version ``` // Prisma version output ```

Comments (0)

No comments yet. Start the discussion.

Comment on this issue