This repository has been archived by the owner on Nov 10, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.gql
131 lines (116 loc) · 2.97 KB
/
schema.gql
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
# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------
type Mutation {
addParticipant(input: NewParticipantInput!): Participant!
updateParticipant(input: UpdateParticipantInput!, id: String!): Participant!
addStatus(status: String!, id: String!): Participant!
removeStatus(status: String!, id: String!): Participant!
updateSocials(socials: SocialMediaInput!, id: String!): Participant!
addPartner(input: NewPartnerInput!): Partner!
updatePartner(input: UpdatePartnerInput!, id: String!): Partner!
deletePartner(id: String!): Partner!
addProject(input: NewProjectInput!): Project!
updateProject(input: UpdateProjectInput!, projectId: String!): Project!
addParticipantToProject(participantId: String!, projectId: String!): Project!
removeParticipantFromProject(participantId: String!, projectId: String!): Project!
addPartnerToProject(partnerId: String!, projectId: String!): Project!
removePartnerFromProject(partnerId: String!, projectId: String!): Project!
bind(projectId2: String!, projectId1: String!): Project!
unbind(projectId2: String!, projectId1: String!): Project!
deleteProject(projectId: String!): Project
}
input NewParticipantInput {
firstName: String!
lastName: String!
picture: Upload
"""Participant status (e.g. student, coach, etc.). Default = student"""
status: [String!]
socials: SocialMediaInput
}
input NewPartnerInput {
name: String!
url: String!
logo: Upload!
}
input NewProjectInput {
name: String!
description: String
catchphrase: String
logo: Upload
repository: String
website: String
}
type Participant {
id: ID!
firstName: String!
lastName: String!
picture: String
status: [String!]!
socials: SocialMedia
}
type Partner {
id: ID!
name: String!
url: String!
logo: String!
}
type Project {
id: String!
name: String!
description: String
catchphrase: String
logo: String
repository: String
website: String
partners: [Partner!]
team: [Participant!]
linkedTo: [Project!]
}
type Query {
participants: [Participant!]
participant(id: String!): Participant
partners: [Partner!]
partner(id: String!): Partner
projects: [Project!]
project(id: String!): Project
}
type SocialMedia {
twitter: String
facebook: String
instagram: String
github: String
youtube: String
behance: String
linkedin: String
}
input SocialMediaInput {
twitter: String
facebook: String
instagram: String
github: String
youtube: String
behance: String
linkedin: String
}
input UpdateParticipantInput {
firstName: String
lastName: String
picture: Upload
}
input UpdatePartnerInput {
name: String
url: String
logo: Upload
}
input UpdateProjectInput {
name: String
description: String
catchphrase: String
logo: Upload
repository: String
website: String
}
"""The `Upload` scalar type represents a file upload."""
scalar Upload