cruzlutor
09/02/2019, 4:54 PMmyserverip:4466/_admin
and have access to the data.Bkc
09/02/2019, 5:20 PMBamboozilla
09/02/2019, 9:48 PMryanking
09/02/2019, 11:14 PMschema.graphql
file?Andrii Muntian
09/03/2019, 12:03 AMschema.graphql
file and it has the following line # import * from './generated/prisma.graphql'
It works with the first project but for the second one it does not.
As i understand Prisma provides me with # import...
ability. Am i right? I think it apollo-server can't be a reason.
names and paths are correct as i can see. I can't get what is going wrong. Any ideas?Olaf
09/03/2019, 12:35 AMarsan.irianto
09/03/2019, 5:10 AMIgor Vuleta
09/03/2019, 6:29 AMDavey
09/03/2019, 11:01 AMDavey
09/03/2019, 11:02 AMDavey
09/03/2019, 11:02 AMDavey
09/03/2019, 11:03 AMDavey
09/03/2019, 11:07 AMRichard McKenna
09/03/2019, 11:14 AMprisma deploy
on my Azure DevOps pipeline. I've configured the PRISMA_MANAGEMENT_API_SECRET on the prisma docker compose and as an environment variable for where the Prisma CLI is installed. But when running prisma deploy
I get this error. Does anyone know what the issue is.Morten Bo Rønsholdt
09/03/2019, 2:00 PMprisma import
? $ prisma import --data migration/data
Warning: The `prisma import` command will not be further developed in the future. Please use the native import features of your database for these workflows.
More info here:
MySQL: <https://dev.mysql.com/doc/refman/5.7/en/mysqlimport.html>
Postgres: <https://www.postgresql.org/docs/10/app-pgrestore.html>
Validating data 918ms
Uploading nodes...
Uncaught exception, cleaning up: Error: Cannot find module 'cardinal/themes/jq'
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
Ngr Dev
09/03/2019, 2:54 PMprisma2
together with nexus-prisma
and am wondering if there is a way to query for the length of an array field?
Say my schema.prisma
contains something like
model Post {
id String @default(cuid()) @id @unique
comments String[]
Can I find out - without querying for all comments - how many comments a certain post has? Does nexus-prisma
support something like that already? Does anyone know?
Thanks!Paul Hachmang
09/03/2019, 3:53 PMThe field `id` is marked as id must have one of the following types: `ID!`,`Int!`.
Paul Hachmang
09/03/2019, 3:53 PMShadow Smith
09/03/2019, 7:10 PMDinnall
09/04/2019, 1:45 AMnpm run deploy
I receive a message that it's updated but I still see old code
PLEASE ANY HELP IS APPRECIATED
I've set up my package.json that I only need to run npm run deploy
.
Here is my prisma.yml set up
endpoint: ${env:PRISMA_ENDPOINT}
datamodel: datamodel.prisma
# secret: ${env:PRISMA_SECRET}
hooks:
post-deploy:
- graphql get-schema -p prisma
.graphqlconfig.yml
projects:
app:
schemaPath: "src/schema.graphql"
extensions:
endpoints:
default: "<http://localhost:4444>"
prisma:
schemaPath: "src/generated/prisma.graphql"
extensions:
prisma: prisma.yml
my package.json scripts object so I can use npm run deploy
in the terminal
"scripts": {
"start": "nodemon -e js,graphql -x node src/index.js",
"dev": "nodemon -e js,graphql -x node --inspect src/index.js",
"test": "jest",
"deploy": "prisma deploy --env-file variables.env"
},
evondev
09/04/2019, 3:30 AMPaul Hachmang
09/04/2019, 8:48 AMprisma deploy
, anybody got an idea what is exactly happening? (I’m trying to integrate prisma with an existing legacy database):
It seems to be this issue: https://github.com/prisma/prisma/issues/3766 But as one of the last comments asks: How to actually debug this? The current error is kinda ambiguous..Paul Hachmang
09/04/2019, 8:48 AMPaul Hachmang
09/04/2019, 8:52 AMPaul Hachmang
09/04/2019, 8:59 AMevondev
09/04/2019, 10:12 AMevondev
09/04/2019, 1:43 PMIsaac Weber
09/04/2019, 3:28 PMgenerate:
- generator: graphql-schema
output: ./generated/prisma.graphql
You then will be able to put in the import statement at the top of your schema like so.
# import UserOrderByInput from '../prisma/generated/prisma.graphql'
however it does not work using the javascript client. Importing like so
# import UserOrderByInput from '../prisma/generated/prisma-client/index.js'
Isaac Weber
09/04/2019, 3:30 PMjavascript-client
generator over the grapqhl-schema
generator?Paul Hachmang
09/04/2019, 3:52 PM