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 created sql views with two tables called Draft
Draft
CREATE VIEW `Draft` AS SELECT company.address as address, company.id as id FROM `company`, `admin` WHERE `company`.`company_id` = `admin`.`id`;
Then added Draft model inside the schema.prisma like below
model Draft { id Int @unique address String }
But when I run this query in playground I am getting below error with node js and with playground
const data = await ctx.prisma.draft.findMany({})
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I created sql views with two tables called
Draft
Then added Draft model inside the schema.prisma like below
But when I run this query in playground I am getting below error with node js and with playground
The text was updated successfully, but these errors were encountered: