Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Syntax Error: Expected Name, found } when prisma deploy #3382

Closed
Tauri28 opened this issue Oct 26, 2018 · 4 comments
Closed

Syntax Error: Expected Name, found } when prisma deploy #3382

Tauri28 opened this issue Oct 26, 2018 · 4 comments

Comments

@Tauri28
Copy link

Tauri28 commented Oct 26, 2018

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

@leedan77
Copy link

Same problem with
prisma/1.19.0
graphql 0.13.2

@divyenduz
Copy link
Contributor

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

@timsuchanek
Copy link
Contributor

This is not a bug, but an unimplemented feature prisma/prisma#3407

@schickling
Copy link
Member

Closing in favor of #3407

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

7 participants