hello, I'm using the neo4jgraphql npm module and i got a probleme with my schema:
type Person {
father: Person @relation(name: "FATHER_OF", direction: "OUT")
mother: Person @relation(name: "MOTHER_OF", direction: "OUT")
}
this fails and i don't get why. If I open Playground I just get: "error": "Response not successful: Received status code 400"
. When I delete one of them it works. But as soon as two relations retriev the same type it fails. Can somebody help me out or tell me how i could get more than a code 400 error?
Update:
I got the errormessange:
{
"error": {
"errors": [
{
"message": "Field Mutation.AddPersonPerson can only be defined once.\n\nField Mutation.RemovePersonPerson can only be defined once.",
"extensions": {
"code": "GRAPHQL_VALIDATION_FAILED",
"exception": {
"stacktrace": [
"Error: Field Mutation.AddPersonPerson can only be defined once.",
"Field Mutation.RemovePersonPerson can only be defined once."
]
}
}
}
]
}
}
see: Duplicated generated mutation names · Issue #92 · neo4j-graphql/neo4j-graphql-js · GitHub