-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.graphql
187 lines (167 loc) · 3.35 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
input AddContributorsInput {
id: String!
contributorIds: [String!]!
}
# The javascript `Date` as string. Type represents date and time as the ISO Date string.
scalar DateTime
input GetMembersInput {
skip: Int
limit: Int
}
type Location {
id: String!
name: String!
createdAt: DateTime!
updatedAt: DateTime!
}
type Member {
id: String!
firstName: String!
lastName: String
email: String!
createdAt: DateTime!
updatedAt: DateTime!
ownedProjects: [Project]
headline: String
education: String
bio: String
location: String
remote: Boolean
skills: [Tag]
sectors: [Tag]
socialMedia: [SocialMedia]
avatar: String
website: String
}
input MemberSocialMediaInput {
name: String!
url: String!
}
input MemberTagInput {
id: String!
}
type Mutation {
addMember(data: NewMemberInput): Member
updateMember(data: UpdateMemberInput): Member
removeMember(data: UpdateMemberInput): Member
addProject(data: NewProjectInput): Project
removeProjects(data: RemoveProjectsInput): Boolean
updateProject(data: UpdateProjectInput): Project
addContributors(data: AddContributorsInput): Project
removeContributors(data: RemoveContributorsInput): Project
}
input NewMemberInput {
email: String!
firstName: String!
lastName: String!
headline: String
education: String
bio: String
location: String
remote: Boolean
skills: [MemberTagInput]
sectors: [MemberTagInput]
socialMedia: [MemberSocialMediaInput]
emailVisibility: Boolean
avatar: String
website: String
}
input NewProjectInput {
name: String!
ownerId: String!
contributors: [String]
summary: String
description: String
status: String
remote: Boolean
sectors: [String]
skillsRequired: [String]
picture: [String]
website: [String]
}
type Project {
id: String!
createdAt: DateTime!
updatedAt: DateTime!
name: String!
owner: Member!
contributors: [Member]
summary: String
description: String
status: String
location: [Location]
remote: [String]
sectors: [Tag]
skillsRequired: [Tag]
picture: String
website: [String]
}
type Query {
getMembers(data: GetMembersInput): [Member]
getMember(id: String): Member
getProjects: [Project]
getProject(id: String): Project
}
input RemoveContributorsInput {
id: String!
contributorIds: [String!]!
}
input RemoveProjectsInput {
ownerId: String!
projectIds: [String!]!
soft: Boolean
}
type SocialMedia {
id: String!
name: String!
url: String!
createdAt: DateTime!
updatedAt: DateTime!
}
type Tag {
id: String!
title: String
category: String
createdAt: DateTime!
updatedAt: DateTime!
}
input UpdateMemberInput {
id: String!
email: String
firstName: String
lastName: String
headline: String
education: String
bio: String
location: String
status: String
remote: Boolean
skills: [UpdateMemberTagInput]
sectors: [UpdateMemberTagInput]
socialMedia: [UpdateMemberSocialMediaInput]
emailVisibility: Boolean
avatar: String
website: String
}
input UpdateMemberSocialMediaInput {
id: String!
name: String
url: String
}
input UpdateMemberTagInput {
id: String!
}
input UpdateProjectInput {
id: String!
name: String
ownerId: String
contributors: [String]
summary: String
description: String
status: String
remote: Boolean
sectors: [String]
skillsRequired: [String]
picture: String
website: [String]
}