I have simple use case but still can't find the solution....
I have Questions nodes each question has category , each category can have many questions.
I want to do the following:
retrieve 5 questions where each one of them is from different category.
tried the following but it is not what I am looking for cause I still get questions from the same category.
START question=node:__types__(className = "com.socialist.server.graph.entities.Question")
RETURN distinct(question.category), question
LIMIT 5
What is the correct query for that use-case? Your answer is highly appriciated.