-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
createManyAndReturn types not what Pal.js is expecting #335
Comments
With this new API from Prisma, we add a lot of work on the last version to support it. |
Yes, I am utilizing The issue is the type // This type that you are expecting is missing within my Prisma client's index.d.ts file
Client.Prisma.CreateManyUserAndReturnOutputType
// Modifying my Prisma client's index.d.ts file fixes the problem and I can compile by manually adding this under the Prisma namespace
export type CreateManyUserAndReturnOutputType = Prisma.PrismaPromise<$Result.GetResult<Prisma.$UserPayload<ExtArgs>, T, 'createManyAndReturn'>>; The last line in the code above is the return type for the |
I'm seeing the same error. It looks like maybe the generator should create something like this instead: |
Hi @AhmedElywa ! 🎐
I just wanted to let you know how my upgrade experience has been going for the new
createManyAndReturn
feature Prisma released. I've been running into some small issues.The actual type being generated by Prisma is some kind of super convoluted type for the new
createManyAndReturn
feature:You seem to be expecting the return type for the above to be exported as a declared TypeScript type named
CreateManyUserAndReturnOutputType
. This type is not being generated for me utilizing@prisma ^5.14.0
@paljs/cli v6.0.7
. I have been blocking my update to@paljs/cli v7.0.0
until I can get this resolved.Is this type that you are expecting being generated for you?
Thanks a million for your continual maintenance of Pal.js bud. I would not have been able to create my starter kit without your work. 🥂
The text was updated successfully, but these errors were encountered: