-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
74 lines (65 loc) · 1.01 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
type Query {
group(name: String!): Group
}
type Group {
id: Int!
name: String!
who: String
events(status: EventStatus): [Event]
}
type Event {
id: String!
name: String!
description: String
created: String!
duration: Int
rsvpLimit: Int
status: EventStatus!
time: String!
waitlistCount: Int
yesRSVPCount: Int
venue: Venue!
link: String
rsvp(response: RsvpResponse): [Rsvp]
}
enum EventStatus {
cancelled
draft
past,
proposed
suggested
upcoming
}
type Venue {
id: Int!
name: String!
address: String
city: String
country: String
}
type Rsvp {
created: String!
updated: String!
response: String!
guests: Int
member: Member!
}
enum RsvpResponse{
yes
no
}
type Member {
id: Int!
name: String!
isHost: Boolean!
}
type Comment {
id: Int!
comment: String!
created: String!
likes: Int!
member: Member!
}
type Subscription {
commentPosted(groupName: String!, eventID: String!): Comment!
}