From 5f4d7c2bf31fe70f135bc9c9dbed4607e0653ff1 Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Mon, 3 Oct 2022 22:40:54 +0200 Subject: [PATCH] add notVisibleFor statement --- backend/src/schema/types/type/Post.gql | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/src/schema/types/type/Post.gql b/backend/src/schema/types/type/Post.gql index 8ea8b5cdb..dbfa0676d 100644 --- a/backend/src/schema/types/type/Post.gql +++ b/backend/src/schema/types/type/Post.gql @@ -170,6 +170,7 @@ type Post { @cypher(statement: "MATCH (this)<-[emoted:EMOTED]-(:User) RETURN COUNT(DISTINCT emoted)") group: Group @relation(name: "IN", direction: "OUT") + notVisibleFor: [User]! @cypher("MATCH (this)<-[:CANNOT_SEE]-(user:User) RETURN user") } input _PostInput {