You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
type Role @relation(name:"ACTED_IN", from:"actor", to:"movie") {
actor: Person
movie: Movie
roles: [String]
type: String @cypher(statement:"""
RETURN type(this)
""")
}
type Person {
name: String
born: Int
roles: [Role]
_all: String
_id: ID!
}
type Movie {
title: String
released: Int
characters: [Role]
_all: String
_id: ID!
_labels: [String] @cypher(statement:"""
RETURN labels(this)
""")
}
And the following query :
query {
person(first: 1) {
roles {
type
}
}
}
The generated query is :
MATCH (person:Person)
RETURN person {
roles: [(person)-[personRoles:ACTED_IN]->(personRolesMovie:Movie) | personRoles {
type: apoc.cypher.runFirstColumnSingle('WITH $this AS this RETURN type(this)', {
this: personRolesMovie
})
}]
} AS person LIMIT $personFirst
The parameter value given for this is wrong. It should be personRoles instead of personRolesMovie .
Given the following schema :
And the following query :
The generated query is :
The parameter value given for
this
is wrong. It should bepersonRoles
instead ofpersonRolesMovie
.Failing test here : ikwattro@d75a90e
The text was updated successfully, but these errors were encountered: