We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
VScode throws an inline error here.
zenstack-docs/docs/the-complete-guide/part2/3-writing-plugins.md
Line 55 in b37c4f7
The solution is to define the @@auth attribute on the User
@@auth
User
datasource db { provider = 'sqlite' url = 'file:.dev.db' } model User { id Int @id @default(autoincrement()) posts Post[] @@auth } model Post { id Int @id @default(autoincrement()) title String author User @relation(fields: [authorId], references: [id]) authorId Int @@allow('all', auth() == author) }
I will hold off submitting a PR since this is only an issue in the VScode plugin, but it could throw off any users trying to follow the docs.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
VScode throws an inline error here.
zenstack-docs/docs/the-complete-guide/part2/3-writing-plugins.md
Line 55 in b37c4f7
The solution is to define the
@@auth
attribute on theUser
I will hold off submitting a PR since this is only an issue in the VScode plugin, but it could throw off any users trying to follow the docs.
The text was updated successfully, but these errors were encountered: