Naming an entity "Query" leads to an error #9307
Labels
bug/1-unconfirmed
Bug should have enough information for reproduction, but confirmation has not happened yet.
kind/bug
A reported bug.
team/client
Issue for team Client.
topic: reserved words
See https://www.prisma.io/docs/reference/api-reference/prisma-schema-reference#naming-conventions
Milestone
Bug description
Naming an entity "Query" in prisma.schema leads to an error when trying to start such a project. The console output will not contain clear information about what's wrong. The auto-generated file \node_modules.prisma\client\index.d.ts contains errors after naming an entity "Query".
How to reproduce
Expected behavior
The app starts without error and outputs an empty array to the console since it's the prisma quickstart project with an empty database (after our migration).
Prisma information
schema.prisma.txt
Environment & setup
I have run into this error on Windows 10, Node 14.17.6 and Prisma 3.0.2
Prisma Version
The text was updated successfully, but these errors were encountered: