Add notifications to User

This commit is contained in:
Robert Schäfer 2019-04-05 02:22:34 +02:00
parent 03d4c93f96
commit 97d9b6d772

View File

@ -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)")