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