Ahmet
11/07/2020, 10:41 PMtype Project {
id: UUID! @id
locationSecurity: Json
}
PostgreSQL type:
locationSecurity | text | | | | extended | |
It is stored in schema as JSON and in the database as text. Why? This is bug? Or is there a specific reason?Ryan
11/09/2020, 7:39 AMJson
values as text, as a workaround you would need to manually fix the type in the DB. This is fixed in Prisma 2.