-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathschema.gql
executable file
·85 lines (75 loc) · 2.27 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
# ------------------------------------------------------
# THIS FILE WAS AUTOMATICALLY GENERATED (DO NOT MODIFY)
# ------------------------------------------------------
type Bookmark {
id: ID!
title: String
url: String
parentFolderName: String
createdAt: String!
updatedAt: String!
}
type Folder {
id: ID!
folderName: String
parentFolderName: String
isShared: Boolean
createdAt: String!
updatedAt: String!
}
type User {
id: ID!
name: String
nickname: String
email: String!
googleId: String!
selfIntroduction: String
createdAt: String!
updatedAt: String!
}
type BookmarkInfo {
title: String
imageUrl: String
}
type BookmarkandFolder {
folders: [Folder!]
bookmarks: [Bookmark!]
}
type Query {
getUserInfo(user_id: Float!): User!
getAllUserId: [Float!]!
getBookmarkInfo(bookmark_id: Float!): BookmarkInfo!
getFolderInfo(folder_id: Float!): Folder!
getAllListByParentFolderName(parent_folder_name: String!, user_id: Float!): BookmarkandFolder!
getAllListByUserId(user_id: Float!): BookmarkandFolder!
getSharedListByParentFolderName(parent_folder_name: String!, user_id: Float!): BookmarkandFolder!
getMyPage(user_id: Float!): BookmarkandFolder!
getSharedPage(user_id: Float!): BookmarkandFolder!
getUserId: Int!
}
type Mutation {
writeSelfIntro(user_id: Float!, self_intro: String!): String!
updateUserNickname(user_id: Float!, nickname: String!): String!
deleteUser(user_id: Float!): String!
createBookmark(create_bookmark_input: createBookmarkInput!, user_id: Float!): String!
updateBookmark(bookmark_id: Float!, title: String!, url: String!, parent_folder_name: String!): String!
deleteBookmark(bookmark_id: Float!): String!
createFolder(create_folder_input: createFolderInput!, user_id: Float!): String!
updateFolder(folder_id: Float!, title: String!, is_shared: Boolean!): String!
changeFolderStatus(folder_id: Float!): String!
deleteFolder(folder_id: Float!): String!
deleteAllList(user_id: Float!): String!
uploadHtmlFile(htmlFile: Upload!, user_id: Float!): String!
}
input createBookmarkInput {
title: String
url: String
parentFolderName: String
}
input createFolderInput {
folderName: String
parentFolderName: String
isShared: Boolean
}
"""The `Upload` scalar type represents a file upload."""
scalar Upload