@@ -100,23 +100,23 @@ defmodule GroupherServerWeb.Schema.Account.Types do
100
100
resolve ( & R.Accounts . editable_communities / 3 )
101
101
end
102
102
103
- @ doc "get follower users count"
103
+ @ desc "get follower users count"
104
104
field :followers_count , :integer do
105
105
arg ( :count , :count_type , default_value: :count )
106
106
107
107
resolve ( dataloader ( Accounts , :followers ) )
108
108
middleware ( M.ConvertToInt )
109
109
end
110
110
111
- @ doc "get following users count"
111
+ @ desc "get following users count"
112
112
field :followings_count , :integer do
113
113
arg ( :count , :count_type , default_value: :count )
114
114
115
115
resolve ( dataloader ( Accounts , :followings ) )
116
116
middleware ( M.ConvertToInt )
117
117
end
118
118
119
- @ doc "wether viewer has followed"
119
+ @ desc "wether viewer has followed"
120
120
field :viewer_has_followed , :boolean do
121
121
arg ( :viewer_did , :viewer_did_type , default_value: :viewer_did )
122
122
@@ -126,7 +126,7 @@ defmodule GroupherServerWeb.Schema.Account.Types do
126
126
middleware ( M.ViewerDidConvert )
127
127
end
128
128
129
- @ doc "paged stared posts"
129
+ @ desc "paged stared posts"
130
130
field :stared_posts , :paged_posts do
131
131
arg ( :filter , non_null ( :paged_filter ) )
132
132
arg ( :thread , :post_thread , default_value: :post )
@@ -135,7 +135,7 @@ defmodule GroupherServerWeb.Schema.Account.Types do
135
135
resolve ( & R.Accounts . stared_contents / 3 )
136
136
end
137
137
138
- @ doc "paged stared jobs"
138
+ @ desc "paged stared jobs"
139
139
field :stared_jobs , :paged_jobs do
140
140
arg ( :filter , non_null ( :paged_filter ) )
141
141
arg ( :thread , :job_thread , default_value: :job )
@@ -144,7 +144,7 @@ defmodule GroupherServerWeb.Schema.Account.Types do
144
144
resolve ( & R.Accounts . stared_contents / 3 )
145
145
end
146
146
147
- @ doc "paged stared videos"
147
+ @ desc "paged stared videos"
148
148
field :stared_videos , :paged_videos do
149
149
arg ( :filter , non_null ( :paged_filter ) )
150
150
arg ( :thread , :video_thread , default_value: :video )
@@ -153,7 +153,7 @@ defmodule GroupherServerWeb.Schema.Account.Types do
153
153
resolve ( & R.Accounts . stared_contents / 3 )
154
154
end
155
155
156
- @ doc "paged favorited posts"
156
+ @ desc "paged favorited posts"
157
157
field :favorited_posts , :paged_posts do
158
158
arg ( :filter , non_null ( :paged_filter ) )
159
159
arg ( :thread , :post_thread , default_value: :post )
@@ -162,7 +162,7 @@ defmodule GroupherServerWeb.Schema.Account.Types do
162
162
resolve ( & R.Accounts . favorited_contents / 3 )
163
163
end
164
164
165
- @ doc "paged favorited jobs"
165
+ @ desc "paged favorited jobs"
166
166
field :favorited_jobs , :paged_jobs do
167
167
arg ( :filter , non_null ( :paged_filter ) )
168
168
arg ( :thread , :job_thread , default_value: :job )
@@ -171,7 +171,7 @@ defmodule GroupherServerWeb.Schema.Account.Types do
171
171
resolve ( & R.Accounts . favorited_contents / 3 )
172
172
end
173
173
174
- @ doc "paged favorited videos"
174
+ @ desc "paged favorited videos"
175
175
field :favorited_videos , :paged_videos do
176
176
arg ( :filter , non_null ( :paged_filter ) )
177
177
arg ( :thread , :video_thread , default_value: :video )
@@ -180,7 +180,7 @@ defmodule GroupherServerWeb.Schema.Account.Types do
180
180
resolve ( & R.Accounts . favorited_contents / 3 )
181
181
end
182
182
183
- @ doc "paged favorited repos"
183
+ @ desc "paged favorited repos"
184
184
field :favorited_repos , :paged_repos do
185
185
arg ( :filter , non_null ( :paged_filter ) )
186
186
arg ( :thread , :repo_thread , default_value: :repo )
@@ -189,55 +189,55 @@ defmodule GroupherServerWeb.Schema.Account.Types do
189
189
resolve ( & R.Accounts . favorited_contents / 3 )
190
190
end
191
191
192
- @ doc "total count of stared posts count"
192
+ @ desc "total count of stared posts count"
193
193
field :stared_posts_count , :integer do
194
194
arg ( :count , :count_type , default_value: :count )
195
195
196
196
resolve ( dataloader ( Accounts , :stared_posts ) )
197
197
middleware ( M.ConvertToInt )
198
198
end
199
199
200
- @ doc "total count of stared jobs count"
200
+ @ desc "total count of stared jobs count"
201
201
field :stared_jobs_count , :integer do
202
202
arg ( :count , :count_type , default_value: :count )
203
203
204
204
resolve ( dataloader ( Accounts , :stared_jobs ) )
205
205
middleware ( M.ConvertToInt )
206
206
end
207
207
208
- @ doc "total count of stared videos count"
208
+ @ desc "total count of stared videos count"
209
209
field :stared_videos_count , :integer do
210
210
arg ( :count , :count_type , default_value: :count )
211
211
212
212
resolve ( dataloader ( Accounts , :stared_videos ) )
213
213
middleware ( M.ConvertToInt )
214
214
end
215
215
216
- @ doc "total count of favorited posts count"
216
+ @ desc "total count of favorited posts count"
217
217
field :favorited_posts_count , :integer do
218
218
arg ( :count , :count_type , default_value: :count )
219
219
220
220
resolve ( dataloader ( Accounts , :favorited_posts ) )
221
221
middleware ( M.ConvertToInt )
222
222
end
223
223
224
- @ doc "total count of favorited jobs count"
224
+ @ desc "total count of favorited jobs count"
225
225
field :favorited_jobs_count , :integer do
226
226
arg ( :count , :count_type , default_value: :count )
227
227
228
228
resolve ( dataloader ( Accounts , :favorited_jobs ) )
229
229
middleware ( M.ConvertToInt )
230
230
end
231
231
232
- @ doc "total count of favorited videos count"
232
+ @ desc "total count of favorited videos count"
233
233
field :favorited_videos_count , :integer do
234
234
arg ( :count , :count_type , default_value: :count )
235
235
236
236
resolve ( dataloader ( Accounts , :favorited_videos ) )
237
237
middleware ( M.ConvertToInt )
238
238
end
239
239
240
- @ doc "total count of favorited videos count"
240
+ @ desc "total count of favorited videos count"
241
241
field :favorited_repos_count , :integer do
242
242
arg ( :count , :count_type , default_value: :count )
243
243
0 commit comments