-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
67 lines (56 loc) · 1.15 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
# source: http://localhost:4000/graphql
# timestamp: Sat Jan 05 2019 18:35:44 GMT+0100 (GMT+01:00)
type Board {
color: String!
description: String!
id: ID!
lanes: [Lane!]!
private: Boolean!
title: String!
}
type Card {
createdAt: String!
description: String!
id: ID!
title: String!
}
type Lane {
cards: [Card!]!
id: ID!
title: String!
}
type Mutation {
createBoard(color: String!, description: String!, private: Boolean!, title: String!): Board!
createCard(boardId: Int!, description: String!, laneId: Int!, title: String!): Card!
createLane(boardId: Int!, title: String!): Lane!
signin(email: String!, password: String!): SignInResponse!
signup(email: String!, name: String!, password: String!): SignUpResponse!
}
type Query {
board(id: Int!): Board!
boards: [Board!]!
me: User
}
enum SignInError {
PASSWORD_INVALID
USER_DOES_NOT_EXIST
}
type SignInResponse {
errors: [SignInError!]!
result: SignUpResult
}
enum SignUpError {
EMAIL_ALREADY_USED
}
type SignUpResponse {
errors: [SignUpError!]!
result: SignUpResult
}
type SignUpResult {
token: String!
}
type User {
email: String!
id: ID!
name: String!
}