prisma is forcing me to create a relation and I'm ...
# orm-help
t
prisma is forcing me to create a relation and I'm not 100% sure why. The schemas are arranged like this
Copy code
type MyDossier {
  me: Person
  friendsList: [Person!]!
  someProperty: String
}

type Person {
  id: ID! @unique
  name: String
  age: Int
}
the errors are that
me
and
myFriends
must specify a
@relation
directive:
@relation(name: "MyRelation")
. I read through the unit test file here: https://github.com/graphcool/prisma/blob/762da0cf711abb595a2e743b40d191a54714e535/server/integration-tests/integration-tests-mysql/src/test/scala/com/prisma/integration/SeveralRelationsBetweenSameModelsIntegrationSpec.scala but I'm not immediately seeing why these fields MUST have relationships, because there isnt a necessary back relation