prisma1 icon indicating copy to clipboard operation
prisma1 copied to clipboard

Syntax Error: Expected Name, found } when prisma deploy

Open Tauri28 opened this issue 8 years ago • 4 comments

datamodel.prisma:

interface Object{
	id: ID! @unique
	created: Int!
}

type User implements Object{
	name: String!
}

type Station implements Object{
	units: [Unit!]! @relation(name: "StationUnits", onDelete: SET_NULL)
}

type Unit implements Object{
	station: Station @relation(name: "StationUnits", onDelete: SET_NULL)
}
prisma deploy
post-deploy:

Generating schema... 15ms
 !    Syntax Error: Expected Name, found }

No errors about missing fields required by interfaces. Can be fixed by adding field "test: String" to Station and Unit types.

prisma/1.19.0 (windows-x64) node-v9.10.1 graphql 0.13.2

Tauri28 avatar Oct 26 '18 13:10 Tauri28

Same problem with prisma/1.19.0 graphql 0.13.2

leedan77 avatar Oct 29 '18 07:10 leedan77

Can you please try to run prisma generate --endpoint to generate the schema. Please make sure that the service is live. For context: https://github.com/prisma/prisma/issues/3184

divyenduz avatar Nov 01 '18 13:11 divyenduz

This is not a bug, but an unimplemented feature https://github.com/prisma/prisma/issues/3407

timsuchanek avatar Nov 12 '18 18:11 timsuchanek

Closing in favor of #3407

schickling avatar Dec 07 '18 15:12 schickling