Dario Villanueva
04/17/2019, 3:39 PMVote
, I get an error when trying to run prisma deploy
I ~/w/hackernews-node prisma deploy
Deploying service `hackernews-node` to stage `dev` to server `prisma-eu1` 208ms
Errors:
Link
✖ One field of the type `Link` must be marked as the id field with the `@id` directive.
User
✖ One field of the type `User` must be marked as the id field with the `@id` directive.
Vote
✖ One field of the type `Vote` must be marked as the id field with the `@id` directive.
Deployment canceled. Please fix the above errors to continue deploying.
Read more about deployment errors here: <https://bit.ly/prisma-force-flag>
Dario Villanueva
04/17/2019, 3:40 PMnikolasburk
nikolasburk
type Link {
id: ID! @id
createdAt: DateTime! @createdAt
description: String!
url: String!
postedBy: User
votes: [Vote!]!
}
type User {
id: ID! @id
name: String!
email: String! @unique
password: String!
links: [Link!]!
votes: [Vote!]!
}
type Vote {
id: ID! @id
link: Link!
user: User!
}
Dario Villanueva
04/17/2019, 3:43 PMDario Villanueva
04/17/2019, 3:43 PM