menu

Prisma

🔴 The Prisma Spectrum community is not officially managed by Prisma's support team any more. Please seek help on GitHub or on Slack instead. Learn more: https://spectrum.chat/prisma/general/where-and-how-to-best-seek-help-with-questions-problems~687a1b8f-8658-4df3-8849-ea5ab3503f28

Channels
Chat
view-forward
# All channels
view-forward
# General
view-forward
# Beta
view-forward
# Community
view-forward
# GraphQL
view-forward
# OSS
view-forward
# Random
view-forward
Team

Prisma watercooler

March 20, 2019 at 8:32am
Show previous messages

May 5, 2019 at 6:57am
Can you please your SSL certificate? Looks like the CLI can't verify it
It worked thank you
  • reply
  • like

May 9, 2019 at 10:15am
Hello!
I'm starting to use prisma and when I try to create a new project to connect with my Postgres db I have this error: Cannot read property 'type' of undefined
  • reply
  • like
What is wrong?
  • reply
  • like
TypeError: Cannot read property 'type' of undefined
at _loop_3 (/snapshot/cli/node_modules/prisma-db-introspection/src/databases/relational/relationalIntrospectionResult.ts:349:28)
at PostgresIntrospectionResult.RelationalIntrospectionResult.hideJoinTypes (/snapshot/cli/node_modules/prisma-db-introspection/dist/databases/relational/relationalIntrospectionResult.js:552:17)
at PostgresIntrospectionResult.RelationalIntrospectionResult.infer (/snapshot/cli/node_modules/prisma-db-introspection/src/databases/relational/relationalIntrospectionResult.ts:504:18)
at PostgresIntrospectionResult.RelationalIntrospectionResult.getDatamodel (/snapshot/cli/node_modules/prisma-db-introspection/src/databases/relational/relationalIntrospectionResult.ts:53:17)
at PostgresIntrospectionResult.IntrospectionResult.getNormalizedDatamodel (/snapshot/cli/node_modules/prisma-db-introspection/src/common/introspectionResult.ts:23:24)
at EndpointDialog.<anonymous> (/snapshot/cli/node_modules/prisma-cli-core/src/utils/EndpointDialog.ts:409:44)
at step (/snapshot/cli/node_modules/prisma-cli-core/dist/utils/EndpointDialog.js:43:23)
at Object.f [as next] (/snapshot/cli/node_modules/prisma-cli-core/dist/utils/EndpointDialog.js:24:53)
at fulfilled (/snapshot/cli/node_modules/prisma-cli-core/dist/utils/EndpointDialog.js:15:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
output Exiting with code: 1 +0ms
  • reply
  • like
Hi guys, I don't know why I can't use the --prototype flag for introspection, even with [email protected], any idea ? Many thanks
  • reply
  • like
Error: Unknown flag --prototype
  • reply
  • like

May 10, 2019 at 9:53am
Pets(where:{s:0}){
userId
User(id:"How can I use userId here ?"){
id
}
}
}
Edited
  • reply
  • like

May 10, 2019 at 11:50pm
Hello - is it possible to completely purge prisma and all its dependencies? npm uninstall -g prisma still leaves tonnes behind, and it's causing me a lot of grief
Edited
  • reply
  • like

May 14, 2019 at 3:01pm
hello, I'm encountering this problem Error: output for generator graphql-schema should be a .graphql-file. Please change the output property for this generator in prisma.yml Hope somone could help..thanks!!
  • reply
  • like
tried to change the file name as message suggested but error still there
  • reply
  • like
hello, I'm encountering this problem Error: output for generator graphql-schema should be a .graphql-file. Please change the output property for this generator in prisma.yml Hope somone could help..thanks!!
Try changing the property like so:
generate:
- generator: graphql-schema
output: ./path/to/your/schema/prisma.graphql
This was a breaking change listed here: https://github.com/prisma/prisma/releases/tag/1.29.0
  • reply
  • like

May 18, 2019 at 3:28pm
hey there everyone. really sorry for the trouble. I'm new to prisma and docker. following a guide to set up prisma and having a prisma init issue. i'm using an exsisting heroku pg db set up with no data and everything is fine until I get to the SSL question. I need to use SSL for docker for my understanding but if i hit Y or n it instantly fails with "ENOTFOUND' and 2 more lines referencing my heroku amazonaws.com. It never generates the needed files to continue and Despite my googling I'm very stuck. Can anyone point me in the right direction please? Hope you are all having a wonderful weekend! Thank you
  • reply
  • like

May 30, 2019 at 10:53pm
i'm following the starting docs in prisma latest verion 1i'm following the starting docs in prisma latest verion 1.34.upon executing the code "node index.js" it is alerting an error of cannot find the module '../generated/prisma-client' please do help
  • reply
  • like

June 6, 2019 at 6:00pm
Hi there! I’m getting this error java.sql.SQLSyntaxErrorException: (conn=4) Unknown column 'Alias.text' in 'field list' I can’t figure it put how to fix it. I already reset the data, force deploy but anything seems to work
  • reply
  • like

June 7, 2019 at 10:33am
Is it possible to build a prisma server infront of an existing dotnet GraphQL service? I am really interested in using the prisma admin tool.
  • reply
  • like

June 8, 2019 at 9:53pm
hi im new user and i want to try prisma, but i see prisma 2 ->19 june, i want to know if prisma 1.30 will be compatible with prisma 2 (update v1 -> v2), or if i need to wait prisma 2 thanks
Edited
  • reply
  • like

June 13, 2019 at 9:29pm
hello
  • reply
  • like
Is anyone here?
  • reply
  • like
I have a problem with prisma deploy
  • reply
  • like

June 14, 2019 at 7:30pm
i'm here
  • reply
  • like
a day late :P
  • reply
  • like

June 18, 2019 at 12:11pm
If anyone's awake in here: The "create a new database" flow on the admin panel in prisma seems to be broken, I can't link my existing heroku account, it just gives me a "Invalid credentials" error as soon as i hit "create", any ideas?
  • reply
  • like

June 19, 2019 at 1:06am
Hi all!
  • reply
  • like
I'm having the following issue after following Get Started with an existing database. My setup is as follows:
  • Windows 10: WSL Ubuntu 18 or standard CMD
  • Prisma CLI: prisma/1.34.0 (linux-x64) node-v10.16.0
  • MySQL: Community Server 5.7 running on port 3309
Stack Trace:
[email protected]:/mnt/c/Users/user1/Documents/Projects$ prisma init ps-graphql
command Failed to get the definition file +0ms
command Error: Couldn’t find `prisma.yml` file. Are you in the right directory? +2ms
init prisma init workflow called without existing directory. +0ms
init Error: ENOENT: no such file or directory, scandir '/mnt/c/Users/user1/Documents/Projects/ps-graphql/' +1ms
client Sending query to cloud api +0ms
client https://api2.cloud.prisma.sh +0ms
client {
client me {
client id
client name
client login {
client email
client }
client }
client } +1ms
client undefined +1ms
client { headers:
client { Authorization:
client 'Bearer xxxxxxxxxxx.xxxxxxxxxxxxxxxxxxx.xxxxxxxxxxxxxxxxx' },
client agent: undefined } +1ms
endpoint-dialog EndpointDialog workflow called without existing directory. +937ms
endpoint-dialog Error: ENOENT: no such file or directory, scandir '/mnt/c/Users/user1/Documents/WORK/KHPH-INC/Projects/ps-graphql/' +0ms
? Set up a new Prisma server or deploy to an existing server? Use existing database
? What kind of database do you want to deploy to? MySQL
? Does your database contain existing data? Yes
? Enter database host localhost
? Enter database port 3309
? Enter database user dbuser
? Enter database password [hidden]
Introspecting database prestashop... !
TypeError: Cannot read property 'type' of undefined
at _loop_3 (/mnt/c/Users/user1/AppData/Roaming/npm/node_modules/prisma/node_modules/prisma-db-introspection/src/databases/relational/relationalIntrospectionResult.ts:348:28)
at MysqlIntrospectionResult.RelationalIntrospectionResult.hideJoinTypes (/mnt/c/Users/user1/AppData/Roaming/npm/node_modules/prisma/node_modules/prisma-db-introspection/dist/databases/relational/relationalIntrospectionResult.js:552:17)
at MysqlIntrospectionResult.RelationalIntrospectionResult.infer (/mnt/c/Users/user1/AppData/Roaming/npm/node_modules/prisma/node_modules/prisma-db-introspection/src/databases/relational/relationalIntrospectionResult.ts:504:18)
at MysqlIntrospectionResult.RelationalIntrospectionResult.getDatamodel (/mnt/c/Users/user1/AppData/Roaming/npm/node_modules/prisma/node_modules/prisma-db-introspection/src/databases/relational/relationalIntrospectionResult.ts:53:17)
at MysqlIntrospectionResult.IntrospectionResult.getNormalizedDatamodel (/mnt/c/Users/user1/AppData/Roaming/npm/node_modules/prisma/node_modules/prisma-db-introspection/src/common/introspectionResult.ts:23:24)
at EndpointDialog.<anonymous> (/mnt/c/Users/user1/AppData/Roaming/npm/node_modules/prisma/node_modules/prisma-cli-core/src/utils/EndpointDialog.ts:409:44)
at step (/mnt/c/Users/user1/AppData/Roaming/npm/node_modules/prisma/node_modules/prisma-cli-core/dist/utils/EndpointDialog.js:43:23)
at Object.next (/mnt/c/Users/user1/AppData/Roaming/npm/node_modules/prisma/node_modules/prisma-cli-core/dist/utils/EndpointDialog.js:24:53)
at fulfilled (/mnt/c/Users/user1/AppData/Roaming/npm/node_modules/prisma/node_modules/prisma-cli-core/dist/utils/EndpointDialog.js:15:58)
at process._tickCallback (internal/process/next_tick.js:68:7)
output Exiting with code: 1 +0ms
  • reply
  • like
Show more messages