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

Issue using @@index with @@delegate #1243

Closed
acdifran opened this issue Apr 12, 2024 · 2 comments
Closed

Issue using @@index with @@delegate #1243

acdifran opened this issue Apr 12, 2024 · 2 comments

Comments

@acdifran
Copy link

acdifran commented Apr 12, 2024

Description and expected behavior
Any @@index attribute is copied over from the delegate model when using @@delegate, which causes an error in schema.prisma for referencing an unknown field.

Screenshots
Screenshot 2024-04-11 at 5 44 09 PM
Screenshot 2024-04-11 at 5 44 17 PM

Environment (please complete the following information):

  • ZenStack version: 2.0.0-beta.10
  • Prisma version: 5.9.1
  • Database type: Postgresql
@ymc9
Copy link
Member

ymc9 commented Apr 12, 2024

Thanks for reporting this @acdifran ! Will make a fix soon.

@ymc9
Copy link
Member

ymc9 commented Apr 15, 2024

Fixed in 2.0.0-beta.13

@ymc9 ymc9 closed this as completed Apr 15, 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

2 participants