user3545726
user3545726

Reputation: 85

How to create a prisma model from a SQL view

Is it possible to have 'prisma introspect' create models for views in Postgres ?

Upvotes: 4

Views: 5164

Answers (1)

Ryan
Ryan

Reputation: 6347

Currently not, but we have a request for that here that you can follow for more updates. As a workaround, you can manually add that view to schema.prisma as a model and then query as you do for normal models.

Upvotes: 4

Related Questions