Add Notification type

This commit is contained in:
Robert Schäfer 2019-04-05 01:23:33 +02:00
parent 8477e71c28
commit 03d4c93f96
2 changed files with 11 additions and 1 deletions

View File

@ -13,9 +13,11 @@ export default {
CreatePost: setCreatedAt, CreatePost: setCreatedAt,
CreateComment: setCreatedAt, CreateComment: setCreatedAt,
CreateOrganization: setCreatedAt, CreateOrganization: setCreatedAt,
CreateNotification: setCreatedAt,
UpdateUser: setUpdatedAt, UpdateUser: setUpdatedAt,
UpdatePost: setUpdatedAt, UpdatePost: setUpdatedAt,
UpdateComment: setUpdatedAt, UpdateComment: setUpdatedAt,
UpdateOrganization: setUpdatedAt UpdateOrganization: setUpdatedAt,
UpdateNotification: setUpdatedAt
} }
} }

View File

@ -69,6 +69,14 @@ type Statistics {
countShouts: Int! countShouts: Int!
} }
type Notification {
id: ID!
read: Boolean,
user: User @relation(name: "NOTIFIED", direction: "OUT")
post: Post @relation(name: "NOTIFIED", direction: "IN")
createdAt: String
}
scalar Date scalar Date
scalar Time scalar Time
scalar DateTime scalar DateTime