add active categories to user

This commit is contained in:
Moriz Wahl 2022-09-05 20:06:10 +02:00
parent b8ac4cc3ca
commit 572377acfd

View File

@ -114,6 +114,14 @@ type User {
badgesCount: Int! @cypher(statement: "MATCH (this)<-[:REWARDED]-(r:Badge) RETURN COUNT(r)")
emotions: [EMOTED]
activeCategories: [Category] @cypher(
statement: """
MATCH (category:Category)
WHERE NOT ((this)-[:NOT_INTERESTED_IN]->(category))
RETURN category
"""
)
}