I have a GRANDstack app.
For this app I have a Cypher request in Neo4j like this:
MATCH (c:CLUSTER)
WITH c
ORDER BY c.cluster_score DESC
LIMIT 5
MATCH (c)<-[:HAS_CLUSTER]-(a:ARTICLE)
WITH c,a
ORDER BY a.article_score DESC
RETURN c, collect(a)[..5] as articles
It returns the best articles in each clusters. I have to show this in my React interface. I would like to implement this in GraphQL but I don't know how to code this because I return 2 things in this request.
How can I write my request in GraphQL ?