I want to make an app with GRANDstack.
In my Neo4j database I have articles that are similar to other articles.
It looks like this: (:ARTICLE)-[:SIMILAR]->(:ARTICLE)
I know that I have to firstly define GraphQL types, so I did this in my schema.graphql file:
type ARTICLE {
_id: Long!
id: Int!
community: Int
label: String!
seed_label: Int
title: String!
keywords: [KEYWORD] @relation(name: "APPEARS_IN", direction: IN)
}
Knowing that this is article similar with other articles, how do I add the relationship SIMILAR ?