About Prisma's preview features
Which of Prisma's preview features does Wasp currently support?
1 Reply
Hi @isaiah. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Wasp allows you to enable Prisma's preview features by specifying them in the
app.db.prisma.clientPreviewFeatures
field in your main.wasp
file. The documentation and examples specifically mention support for features like "postgresqlExtensions"
and "extendedWhereUnique"
:
- "postgresqlExtensions"
is used to enable support for PostgreSQL extensions via Prisma.
- "extendedWhereUnique"
allows Prisma's update()
and similar functions to accept more than just unique fields, such as passing a userId
for additional filtering.
You can specify any Prisma client preview feature in this field, but the documentation only explicitly demonstrates these two features. For a full list of available preview features, you should refer to the Prisma documentation as linked in the Wasp docs. There is no indication in the knowledge sources that Wasp restricts which preview features you can enable, but only these two are directly documented as examples so far Prisma Configuration The app.db Field.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @isaiah, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?