Prisma Seed Command Fails with TypeScript File Extension Error
I’m trying to seed my database using Prisma’s official CLI, but I’m encountering an unexpected error when running npx prisma db seed
. My project was set up using the official Prisma CLI, and I’m following their documentation, yet I’m getting a file extension error that seems bizarre.
Prisma ORM – multiple 1 to n relations in one model
I’m having problems trying to apply multiple 1 to n relations to a model – the funny thing is it partly works so to clarify:
I have a “Vacancy” object, which could be created by either an “Internal” or an “Agent” those roles are separate and have their own models so I was planning to do something like this:
Prisma client table names generated from introspect have mismatching case
I have a sql server database with all tables in upper snake case (e.g., APPLICATION_USER). I ran npx prisma db pull
and it generated the prisma schema as expected (table names in schema.prisma are all upper snake case). However, in the prisma client, the table names look like this:
How to groupBy and make a filter in one of the attributes
I want to use the groupBy funtionality of prisma to take the rows and always get that one with the higher date. For example I have this in the table:
sorting on nested property with prisma
i’m using prisma and typescript, and i want to sort role in a table, but when i sort the role, the console will put error like this
Error While Implementing Migrate Command in Prisma: How to Resolve?
I am Working on Twitter-Clone, where I am facing issue on Twitter-server side while implementing Prisma.
more details- when I am trying to create a dataBase table of MODEL USER in schema.prisma and trying to connect it with superBase by running “npx prisma migrate dev –name added_user_model” command then this goes under processing but does not execute as it has to be.
As you can see in terminal command is running and it keep on process like this only.
Creating user accounts with remix-auth-form and remix-auth and prisma
I’m learning authentication for remix. I’m creating a signup sheet where the user creates an account with an email, username, and password. I can create the account on my database but the authentication fails. Here’s my code. I would appreciate any insight or help you can give me.
How to filter relation data in prisma?
I got an error:
Is there a way to use prisma compound IDs as references in a model relation?
I am trying to create a complex id
for my model which combines a custom string field and an @autoincrement
field. Here is what I have tried.
Modify Prisma fields with extension
I’m creating an extension that allows me to modify the output of a field based on a user’s permissions.