cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

GraphQL : “message”: “Unknown variable `aRTICLE_group`.”

LJRB
Graph Buddy

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

1 REPLY 1

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