-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
98 lines (82 loc) · 1.77 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
### This file was generated by Nexus Schema
### Do not make changes to this file directly
type Band {
details: BandDetails!
id: String!
members: [User!]!
name: String!
setlists: [Setlist!]!
songs: [Song!]!
}
input BandAddMemberInput {
bandId: String!
bandMemberRole: String!
userId: String!
}
input BandCreateInput {
location: String!
name: String!
}
type BandDetails {
location: String!
}
type Mutation {
addOneSongToSetlist(membership: SetlistAddSongInput!): String!
addOneUserToOneBand(membership: BandAddMemberInput!): String!
createOneBand(band: BandCreateInput!): Band!
createOneSetlist(setlist: SetlistCreateInput!): Setlist!
createOneSong(song: SongCreateInput!): Song!
createOneUser(user: UserCreateInput!): UserToken
login(credentials: UserCredentialsType!): UserToken
}
type Query {
findOneUserByEmail(email: String!): User!
findSetlistsByBand(bandId: String!): [Setlist!]!
findSongsByBand(bandId: String!): [Song!]!
getOneBandById(bandId: String!): Band!
me: User!
}
type Setlist {
"""Costs a Query, if you just need the band Id, use bandId instead!"""
band: Band!
bandId: String!
id: String!
songs: [Song!]!
title: String!
}
input SetlistAddSongInput {
bandId: String!
setlistId: String!
songId: String!
}
input SetlistCreateInput {
bandId: String!
title: String!
}
type Song {
"""Costs a Query, if you just need the band Id, use bandId instead!"""
band: Band!
bandId: String!
id: String!
setlists: [Setlist!]!
title: String!
}
input SongCreateInput {
bandId: String!
title: String!
}
type User {
bands: [Band!]!
email: String!
}
input UserCreateInput {
email: String!
password: String!
}
input UserCredentialsType {
email: String!
password: String!
}
type UserToken {
token: String!
}