From 97d9b6d7728a23af33f15541df17aa09ee192d48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=A4fer?= Date: Fri, 5 Apr 2019 02:22:34 +0200 Subject: [PATCH] Add notifications to User --- backend/src/schema.graphql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/src/schema.graphql b/backend/src/schema.graphql index 5722500ea..db468471a 100644 --- a/backend/src/schema.graphql +++ b/backend/src/schema.graphql @@ -132,6 +132,8 @@ type User { createdAt: String updatedAt: String + notifications(read: Boolean): [Notification]! @relation(name: "NOTIFIED", direction: "IN") + friends: [User]! @relation(name: "FRIENDS", direction: "BOTH") friendsCount: Int! @cypher(statement: "MATCH (this)<-[:FRIENDS]->(r:User) RETURN COUNT(DISTINCT r)")