add notVisibleFor statement

This commit is contained in:
Moriz Wahl 2022-10-03 22:40:54 +02:00
parent 1870efc3d0
commit 5f4d7c2bf3

View File

@ -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 {