-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.gql
50 lines (44 loc) · 1020 Bytes
/
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
# -----------------------------------------------
# !!! THIS FILE WAS GENERATED BY TYPE-GRAPHQL !!!
# !!! DO NOT MODIFY THIS FILE BY YOURSELF !!!
# -----------------------------------------------
type Item {
id: Int!
name: String!
link: String!
}
type List {
id: Int!
name: String!
password: String!
items: [Item!]!
color: String!
}
type Mutation {
addUser(color: String, name: String!): Boolean!
dropUser(id: Float!): Boolean!
addItem(list: Float!, link: String!, name: String!): Boolean!
dropItem(id: Float!): Boolean!
addList(userId: Float!, name: String!): Boolean!
dropList(id: Float!): Boolean!
dropToken(userId: Float!): Token!
}
type Query {
user(id: Float!): User
items(listId: Float, id: Float): [Item!]
lists(userId: Float, id: Float): [List!]
getToken(loginCode: String!): Token
}
type Token {
id: Int
token: String!
user_id: Float!
expires: String!
}
type User {
id: Int!
name: String!
account_code: String!
color: String!
lists: [List!]!
}