arunima
06/22/2020, 7:17 AMAshiqur Rahman
06/22/2020, 12:16 PMwhy I am getting this error on while I tried to read user table?
user is already created but I can't read it from prisma studio.
Markell Richards
06/22/2020, 1:08 PMAgrippa Kellum
06/22/2020, 10:55 PM@prisma/client
silently generate a client, the same as prisma generate
, after getting installed via npm install @prisma/client
Agrippa Kellum
06/22/2020, 10:56 PM@prisma/client
if you install it over npm and not via the cliCooper Mor
06/23/2020, 2:17 AM502
errors when I try to seed the data or fetch it using the client, here's my final URL https://prisma-vercel-test10.coopermor.vercel.app/Tulsi Prasad
06/24/2020, 2:31 PMgenerate
and post deploy
hook while generating the prisma graphql schema file and want to know if there are any different use cases to this.
I thought to add the question to stackoverflow coz I didn't find any particular explanation on this topic so it'd be helpful if you give that a look. Here's the link to question. Thank you 💙Rex Lorenzo
06/24/2020, 3:42 PMHadar
06/24/2020, 8:45 PMSamrith Shankar
06/24/2020, 10:43 PMJavanie Campbell
06/25/2020, 5:40 AMAsad
06/25/2020, 7:24 AM"dependencies": {
"apollo-server-express": "^2.15.0",
"babel-preset-env": "^1.7.0",
"graphql": "^0.13.2",
"graphql-cli": "^2.17.0",
"graphql-yoga": "1.18.3",
"prisma": "^1.34.10",
"prisma-binding": "^2.3.16"
},
can someone please help?
🙂 thanksKervin Vasquez
06/25/2020, 7:22 PMDimitri Ivashchuk
06/25/2020, 7:54 PMVictor Molero
06/25/2020, 8:00 PMMatt
06/25/2020, 10:49 PMRudi Yardley
06/25/2020, 11:33 PMAlvin Khaled
06/26/2020, 7:08 AMnpx prisma introspect
and npx prisma generate
, the schema.graphql
file remained unchanged, even after trying also to run npm run generate
. Is this intended behavior?
The two examples I tried: https://github.com/prisma/prisma-examples/tree/master/typescript/graphql-nextjs and https://github.com/prisma/prisma-examples/tree/master/typescript/graphql-apollo-serverLuca Cattide
06/26/2020, 7:32 AMLuca Cattide
06/26/2020, 9:54 AMprisma deploy
I’m getting an exception:
ERROR: GraphQL Error (Code: 404)
{
"error": "<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<title>Error</title>\n</head>\n<body>\n<pre>Cannot POST /management</pre>\n</body>\n</html>\n",
"status": 404
}
I’m not getting this because I set the secret key both on prisma.yml than on docker-compose.ymlLuca Cattide
06/26/2020, 9:54 AMglauberfc
06/26/2020, 11:34 AMjanpio
Ki Hong
06/26/2020, 12:00 PMSamson Amaugo
06/26/2020, 12:00 PMKi Hong
06/26/2020, 12:00 PMSm03leBr00t
06/26/2020, 1:34 PMjanpio
Matheus Assis
06/26/2020, 2:33 PMconst sql = fs.readFileSync(path.join(basePath, fileName), {
encoding: 'utf8'
});
await db.executeRaw(sql);
But I get:
PrismaClientKnownRequestError: Raw query failed. Code: `1064`. Message: `You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE IF NOT EXISTS `IndustrySector` (
`id` int NOT NULL AUTO_INCREMEN' at line 31`
at PrismaClientFetcher.request (D:\dev\perimetre\export-connect-backend\node_modules\@prisma\client\src\runtime\getPrismaClient.ts:902:15)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
code: 'P2010',
meta: {
code: '1064',
message: "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'CREATE TABLE IF NOT EXISTS `IndustrySector` (\r\n" +
" `id` int NOT NULL AUTO_INCREMEN' at line 31"
}
}
Even though if I copy the contents of the sql file and use it with something like Mysql Workbench oh php my admin it works fine.
Is executeRaw
not suited for that? Is there other way that I can do this?Matheus Assis
06/26/2020, 2:37 PMprisma migrate
command will be released as not experimental features? Not exactly launch dates but whether it is soon-ish?