Having issues while deploying the following: ``` ...
# random
r
Having issues while deploying the following:
Copy code
type Mutation {
  signup(email: String!, password: String!): AuthPayload!
  login(email: String!, password: String!): AuthPayload!
}

type AuthPayload {
  token: String!
  human: Human!
}
Errors:
Copy code
Errors:

  Mutation
    ✖ The relation field `signup` must specify a `@relation` directive: `@relation(name: "MyRelation")`
    ✖ The relation field `login` must specify a `@relation` directive: `@relation(name: "MyRelation")`
Don't understand what it wants ...
e
Hello Roman, is this your datamodel? I'm quite sure that prisma does not support mutations in the datamodel. Aside from that, the mentioned error occurs when a relation is ambiguous, e.g. two relations referring to the same model. You just need to name them explicitely using the
@relation(name: "Name")
directive.
r
Yup, I just realized this too. I was putting mutations into the model, which should be in a separate file.
Thanks