Benjamin Sampson
01/21/2019, 12:36 PMmarcus
01/21/2019, 12:38 PMBenjamin Sampson
01/21/2019, 12:38 PMBenjamin Sampson
01/21/2019, 12:38 PMtype Item {
id: ID! @unique
title: String!
description: String!
image: String
largeImage: String
price: Int!
dummy: Boolean
}
Benjamin Sampson
01/21/2019, 12:38 PMmarcus
01/21/2019, 12:39 PMHarshit
01/21/2019, 12:48 PMHarshit
01/21/2019, 12:48 PMdivyendu
01/21/2019, 1:19 PMprisma generate
. This happens because of this https://github.com/prisma/prisma/issues/3184
You can get around this by bypassing the JS schema generation by running the following command prisma generate --endpoint
- note that this would work only after Prisma service is live i.e. after a prisma deploy
divyendu
01/21/2019, 1:20 PMprisma generate
? If yes, can you please create an issue for this using the data model provided by @Benjamin Sampson 🙏Harshit
01/21/2019, 1:22 PMdivyendu
01/21/2019, 1:28 PMprisma --version
command?
Most likely this issue is resolved in the latest CLI version, can you please try an update via npm install -g prisma
?
@Harshit: What version of Prisma CLI are you on?Harshit
01/21/2019, 1:31 PMdivyendu
01/21/2019, 1:35 PMHarshit
01/21/2019, 1:36 PMHarshit
01/21/2019, 1:41 PMBenjamin Sampson
01/21/2019, 8:56 PMBenjamin Sampson
01/21/2019, 9:00 PMgraphql playground
Sorry I should have specifiedBenjamin Sampson
01/21/2019, 9:02 PMprisma deploy
is running fineBenjamin Sampson
01/22/2019, 3:59 AMgraphql playground
working for you?Harshit
01/22/2019, 4:00 AMBenjamin Sampson
01/22/2019, 4:09 AMprisma playground
Harshit
01/22/2019, 4:10 AMHarshit
01/22/2019, 4:10 AMBenjamin Sampson
01/22/2019, 4:11 AMprojects:
app:
schemaPath: 'src/schema.graphql'
extensions:
endpoints:
default: '<http://localhost:4444>'
prisma:
schemaPath: 'src/generated/prisma.graphql'
extensions:
prisma: prisma.ymlHarshit
01/22/2019, 4:12 AMBenjamin Sampson
01/22/2019, 4:19 AMHarshit
01/22/2019, 4:24 AMBenjamin Sampson
01/22/2019, 4:25 AMBenjamin Sampson
01/22/2019, 5:56 AMschema.graphql
file - apparently not having one causes an error