relations
Experimental Feature
This object's entries are a key-value pair. When the schema is being generated, the remapper will identify the relations by using this configuration section to ensure that the you don't get reverse mapping errors in Prisma. This is a feature that is a bit harder to configure correctly, and as such we recommend that you familiarize yourself with the topics covered on this page. To tell Prisma Util how to handle your relations properly, add the following line to your exported configuration object:
prisma-util.config.mjs
In this example, column1
will have it's type changed to Model2
.
Last updated