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
I'm getting an strange error while trying to generate SDL files and I can't understand why.
schema.prisma
generator client { provider = "prisma-client-js" } datasource db { provider = "postgresql" url = env("DATABASE_URL") } model sd_cargo { id Int @id @default(autoincrement()) nome String @db.VarChar }
pal.config.js
module.exports = { backend: { generator: 'sdl', onDelete: true, output: 'graphql/generated', javaScript: true, }, }
Error
◣ Generating your files SyntaxError: Syntax Error: Expected Name, found ")". (7:24) 5 | 6 | type Query { > 7 | findUniqueSd_cargo(): sd_cargo | ^ 8 | findFirstSd_cargo(): sd_cargo 9 | findManySd_cargo(): [sd_cargo!]! 10 | findManySd_cargoCount(): Int!
If I change the model name to:
Any idea?
The text was updated successfully, but these errors were encountered:
We are working with prisma recommendation with a model name starting with a capital letter.
Sorry, something went wrong.
No branches or pull requests
I'm getting an strange error while trying to generate SDL files and I can't understand why.
schema.prisma
pal.config.js
Error
If I change the model name to:
Any idea?
The text was updated successfully, but these errors were encountered: