LJRB
(LJRB)
#1
I have the following type in my schema.graphql script:
type ARTICLE {
_id: Long!
community: Int!
familyComponent: Int!
id: Int!
label: String!
seed_label: Int
title: String!
similar: [ARTICLE] @relation(name: "SIMILAR", direction: OUT)
SIMILAR_rel: [SIMILAR]
keywords: [KEYWORD] @relation(name: "APPEARS_IN", direction: IN)
group: [ARTICLE]
@cypher(
statement: "MATCH (a:ARTICLE) RETURN a.community as id, COLLECT(a) AS articles"
)
}
I tried to query it, for example:
query {
ARTICLE{
title
group{id}
}
}
But I have the error Unknown variable aRTICLE_group
I saw that other developers have this error so I don't if the error comes from what I coded
anakornk
(Anakornk)
#2
I was having the same problem. What version of neo4j are you using?
Upgrading neo4j from v4.0.4 to v4.1.13 fixed the issue for me.
https://github.com/neo4j-graphql/neo4j-graphql-js/issues/445