-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
80 lines (71 loc) · 1.53 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
schema {
query: Query
mutation: Mutation
}
type AppAvatarNode {
id: ID!
image: String!
app: AppsNode!
url: String
}
type AppCategoryNode {
id: ID!
name: String!
appsList: [AppsNode!]!
}
type AppsNode {
id: ID!
created: DateTime!
title: String!
language: String
languageCount: Int
description: String
size: Float
award: String
place: Int
age: Int
category: AppCategoryNode!
developer: String
chart: String
version: String
compatibility: String
downloadUrl: String
appImages: [ImagesNode!]!
appAvatar: [AppAvatarNode!]!
}
scalar DateTime
type ImagesNode {
id: ID!
mainImage: String!
isAvatar: Boolean!
app: AppsNode!
url: String
}
type Mutation {
addApp(title: String!, language: String, size: String, award: String, place: String, age: String, category: String!): AppsNode
removeApp(appId: ID): Boolean
}
type PostImageNode {
id: ID!
image: String!
isAvatar: Boolean!
post: PostNode!
url: String
}
type PostNode {
id: ID!
created: DateTime!
title: String!
miniTitle: String
body: String
postImages: [PostImageNode!]!
}
type Query {
appsList(page: Int, count: Int, category: Int): [AppsNode]
appCategories(page: Int, count: Int): [AppCategoryNode]
appImages(page: Int, count: Int): [ImagesNode]
app(appId: ID): AppsNode
appAvatar(appAvatarId: ID): AppAvatarNode
post(postId: ID): PostNode
postList(page: Int, count: Int, category: Int): [PostNode]
}