From a67482b94feaf938042d3ec1193828111c1fb7c0 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 29 Mar 2023 16:21:51 +0200 Subject: [PATCH] add postType property to post type --- backend/src/schema/types/type/Post.gql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/schema/types/type/Post.gql b/backend/src/schema/types/type/Post.gql index c36e02c21..2b4427326 100644 --- a/backend/src/schema/types/type/Post.gql +++ b/backend/src/schema/types/type/Post.gql @@ -171,6 +171,8 @@ type Post { @cypher(statement: "MATCH (this)<-[emoted:EMOTED]-(:User) RETURN COUNT(DISTINCT emoted)") group: Group @relation(name: "IN", direction: "OUT") + postType: [PostType] + @cypher(statement: "RETURN filter(l IN labels(this) WHERE NOT l = 'Post')") } input _PostInput {