-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.graphql
165 lines (145 loc) · 3.27 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
mutation: Mutation
}
type Feed {
canonicalUrl: String
copyright: String
description: String
favoriteCount: Int
feedType: FeedType
feedUrl: String!
id: ObjectId!
identifier: String
images: FeedImage
interests: [Interest]
isFeatured: Boolean
isPublic: Boolean
language: String
postCount: Int
posts(limit: Int, skip: Int): [Post]
publishedDate: DateTime
publisher: String
subscriptionCount: Int
summary: String
themeColor: String
title: String
updatedDate: DateTime
url: String
}
type FeedImage {
favicon: String
featured: String
logo: String
}
type Interest {
children: [Interest]
id: ObjectId
name: String
slug: String
}
type Mutation {
feedCreate(feedUrl: String!, interests: [ObjectId]): [Feed]
feedSubscribe(feedId: ObjectId!): Feed
feedUnsubscribe(feedId: ObjectId!): Feed
interestCreate(name: String!, parent: ObjectId): Interest
interestUpdate(id: ObjectId!, name: String, parent: ObjectId): Interest
userCreateOrUpdate(displayName: String!, email: String!, interests: [ObjectId], password: String!, username: String!): User
userUpdate: User
}
type PaginationSettings {
limit: Int
skip: Int
}
type Post {
author: String
canonicalUrl: String
commentUrl: String
content: String
description: String
direction: String
enclosures: [PostEnclosure]
favoriteCount: Int
feed: Feed
guid: String
id: ObjectId!
identifier: String!
images: PostImage
interests: [String]
isPublic: Boolean
language: String
postType: FeedType
postUpdatedDate: DateTime
publishedDate: DateTime
summary: String
title: String
updatedAt: DateTime
url: String
wordCount: Int
}
type PostEnclosure {
description: String
height: String
id: ObjectId!
length: String
medium: String
title: String
type: String
url: String
width: String
}
type PostImage {
favicon: String
featured: String
logo: String
}
type Query {
feedById(id: ObjectId!): Feed
feedSearch(sort: Sort, sortDirection: SortDirection): [Feed]
interestSearch: [Interest]
postById(id: ObjectId!): Post
userById(id: ObjectId!): User
userLogin(email: String!, password: String): User
userSearch(sort: Sort): [User]
}
type User {
bio: String
displayName: String
email: String
id: ObjectId!
interests: [ObjectId]
isActive: Boolean
isAdmin: Boolean
token: String
url: String
username: String
}
enum CacheControlScope {
PRIVATE
PUBLIC
}
enum FeedType {
article
audio
video
}
enum Sort {
favoriteCount
postCount
relevance
title
updatedDate
}
enum SortDirection {
asc
desc
}
"The `ObjectId` scalar type represents a mongodb unique ID"
scalar ObjectId
"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
"A date string, such as 2007-12-03, compliant with the `full-date` 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 Date
"The `Upload` scalar type represents a file upload."
scalar Upload