#db.[property]= is undefined

1 messages · Page 1 of 1 (latest)

jovial basin
#

You are not supposed to use that object in the frontend, it’ll only work in code running in the server

#

To help pinpoint your problem I’d need more details. Generic tips incoming:

Run prisma studio (blitz prisma studio) and check if your table has data

And maybe your prisma client is not up to date with your schema. Run (blitz prisma generate)

copper pulsar
#

Well after battle with me code ans realizing that the DB file will always be invalid on the frontend it worked. Then it didn't. I might have to come to the confusing solution that it works while there is some form of network connection and nothing else otherwise

copper pulsar