-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
96 lines (80 loc) · 1.5 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
### This file was generated by Nexus Schema
### Do not make changes to this file directly
type AuthPayload {
token: String
user: User
}
"""
A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar.
"""
scalar DateTime
enum Gender {
divers
man
woman
}
type List {
createdAt: DateTime!
current: ListRevision
id: String!
name: String!
owner: User
ownerId: String!
revisions: [ListRevision!]!
status: ListStatus!
updatedAt: DateTime!
}
input ListCreateInput {
date: DateTime
members: [ListMemberInput!]!
name: String!
}
type ListMember {
gender: Gender!
id: String!
listRevId: String!
position: Int!
}
input ListMemberInput {
gender: Gender!
position: Int!
}
type ListRevision {
createdAt: DateTime!
id: String!
members: [ListMember!]!
ownerId: String!
updatedAt: DateTime!
}
enum ListStatus {
live
proposed
sandbox
}
type Mutation {
createList(data: ListCreateInput!): List
login(email: String!, password: String!): AuthPayload
signup(email: String!, password: String!): AuthPayload
}
type Query {
allUsers: [User!]!
listById(id: Int): List
me: User
}
enum SortOrder {
asc
desc
}
type User {
email: String!
id: String!
lists: [List!]!
}
input UserCreateInput {
email: String!
lists: [ListCreateInput!]
}
input UserUniqueInput {
email: String
id: Int
}