i would like to understand why my post route doesn't work, the error comes out like : ReferenceError: author_id is not defined Here is my code following : Sch
Technologies I use: nestjs -> for backend prisma -> for orm postgresql -> database I'm trying to run these technologies using Docker but I'm running in
File "/Users/akaash/opt/miniconda3/lib/python3.8/site-packages/prisma/generato r/models.py", line 861, in check_supported_scalar_list_type Cannot use b_boxes as
I can in Prisma create columns without data, without time? my model at the moment: model modelName { id Int @id @default(autoincrement()) creat
I am trying to figure out how to use prisma with graphql (and apollo server express/typescript). I am getting stuck because I can't find definitions of terms us
I have just recently started using prisma and I ran into an issue with relations. I have a user model and an address model. model User { id Int
Looks like my ORM, Prisma, does not allow for rolling back a migration. How have folks using Prisma rolled back a migration? Is there a way to manually rollback
I would like to find items in a Prisma db where the values for two columns are the same. The use case is to compare the 'created_at' and 'updated_at' fields to
Given a team composed of data scientists and developers. Developers want to use schema.prisma but data scientists don't and want to freely edit the DB directly.
Is it possible to make a boolean "unique" in Prisma? I want only one row to be 'true' at the same time. @Unique doesn't work because there can be multiple 'fals
I want to model nested comments, like on reddit. I'm using a one-to-many self relation like this: model Comment { [...] parentId String? parent Comment? @
I'm trying to add a List to a model using String[] but it it gives me this error: Field "stats" in model "Player" can't be a list. The current connector does no
I've updated Nextjs to it's newest version and also updated next-auth and the prisma adapter as specified by the docs. However, when I try to authenticate in th
Middleware is used to protect the resolver. The middleware checks the role of user and despite the right role of the requested user I cannot access listUser que
I am stuck since long as it is kind of difficult to mock DB calls in unit testing in Nextjs. I have used @prisma/client for database communication. I have studi
I am using Prisma I have a postgres table I want to search, finding only the record that matches where (id and accessKey) or (id and ownerId) It keeps finding w
How can make a change to the database with Prisma.js without having to reset the whole thing? if I have used this command npx prisma migrate dev --name role-mak
I've used prisma.js as an ORM in my project. After executing the npx prisma migrate dev --name rename_and_add_some_columns, I got this error: We found changes
I am getting this error message from prisma when I am running the GraphQL query. Environment variable not found: DATABASE_URL.\n --> schema.prisma:6\n |
I have the following code that runs a mutation to update a post to "published" the mutation works great! It updates the data as expected. However, the data prop