Skip to content
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

default of auth().id to createdBy in createManyAndReturn API doesn't work #1681

Closed
danielpaz6 opened this issue Sep 2, 2024 · 1 comment
Closed
Milestone

Comments

@danielpaz6
Copy link

I'm trying to use createManyAndReturn API on polymorphic model, the base of the model (not the polymorphic part) has createdBy field, but when I'm trying to use it, I get the following error:

'Argument createdBy is missing.'

createdById Int @default(auth().id)
createdBy User @relation('ShelfCreatedBy', fields: [createdById], references: [id]) 

zenstack: 2.4.1
prisma: 5.18.0

@ymc9
Copy link
Member

ymc9 commented Sep 23, 2024

Fixed in 2.6.0

@ymc9 ymc9 closed this as completed Sep 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants