-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
89 lines (81 loc) · 1.62 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
"""
Autogenerated input type of AddNotification
"""
input AddNotificationInput {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String
params: NotificationInput!
}
"""
Autogenerated return type of AddNotification
"""
type AddNotificationPayload {
"""
A unique identifier for the client performing the mutation.
"""
clientMutationId: String
notification: Notification!
}
"""
An ISO 8601-encoded datetime
"""
scalar ISO8601DateTime
type Mutation {
addNotification(
"""
Parameters for AddNotification
"""
input: AddNotificationInput!
): AddNotificationPayload
}
type Notification {
createdAt: ISO8601DateTime!
id: ID!
notificationType: String
recipient: String
sentAt: ISO8601DateTime
updatedAt: ISO8601DateTime!
}
input NotificationInput {
notificationType: String!
recipient: String!
sentAt: ISO8601DateTime!
}
type Query {
fetchNotification(id: ID!): Notification!
fetchNotifications: [Notification!]!
fetchRxs: [Rx!]!
fetchUser(id: ID!): User!
fetchUserRxs(id: ID!): [Rx!]!
fetchUsers: [User!]!
}
type Rx {
additionalInstructions: String
createdAt: ISO8601DateTime!
dose: String
dosesRemaining: Int
icon: String
id: ID!
maxDailyDoses: Int
medName: String
timeBetweenDose: Int
timeOfLastDose: ISO8601DateTime
timeOfNextDose: ISO8601DateTime
totalDoses: Int
updatedAt: ISO8601DateTime!
userId: Int
userInstructions: String
}
type User {
createdAt: ISO8601DateTime!
email: String!
firstName: String
fullName: String
id: ID!
lastName: String
notify: Int
sms: String
updatedAt: ISO8601DateTime!
}