generated from kookmin-sw/cap-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathschema.graphql
1476 lines (1130 loc) · 34.2 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
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
"""Exposes a URL that specifies the behaviour of this scalar."""
directive @specifiedBy(
"""The URL that specifies the behaviour of this scalar."""
url: String!
) on SCALAR
"""요청된 작업에 admin 권한이 필요하나, 권한을 가지고 있지 않은 경우"""
type AdminPermissionRequiredError {
message: String!
}
"""이미 멤버쉽에 가입 되어 있으나 다시 멤버쉽 가입을 요청한 경우 발생"""
type AlreadyJoinedMembershipError {
message: String!
}
"""로그인한 사용자는 접근할 수 없는 서비스에 접근한 경우"""
type AnonymousOnlyError {
message: String!
}
"""Authentication에 필요한 정보가 전달되지 않았을 때 발생하는 에러"""
type AuthInfoRequiredError {
message: String!
}
"""작성자 검색 인터페이스"""
input AuthorFilter {
"""작성자 페르소나의 ID"""
id: GlobalID!
}
"""일정 생년 구간의 데이터를 받아 오기 위한 인터페이스"""
input BirthYearFilter {
"""최소 생년"""
minBirthYear: Int = 0
"""최대 생년"""
maxBirthYear: Int = 100
}
type Bookmark implements Node {
id: GlobalID!
"""대상 페르소나"""
persona: Persona!
"""대상 게시물"""
post: Post!
"""북마크 일시"""
createdAt: DateTime!
}
"""
Post가 소속되거나, Persona의 선호 대상이 되는 카테고리
- Post : Category = N : 1
- Persona : Category = N : M
"""
type Category implements Node {
id: GlobalID!
"""카테고리 본문"""
body: String!
"""생성 일시"""
createdAt: DateTime!
}
"""이미 등록된 body로 카테고리 생성을 시도한 경우 발생"""
type CategoryBodyDuplicatedError {
"""중복 필드 이름"""
violatedFieldName: String!
"""중복된 카테고리 body 값"""
violatedFieldValue: String!
message: String!
}
"""카테고리 검색 인터페이스"""
input CategoryBodyFilter {
"""검색 모드"""
mode: StringFindMode = EXACTLY
"""검색 문자열"""
token: String!
}
"""카테고리 body의 길이가 기준치보다 긴 경우 발생"""
type CategoryBodyTooLongError {
"""위반 필드 값"""
violatedFieldName: String!
"""위반 사유 상세"""
detail: String
message: String!
"""전달된 카테고리 body 값"""
violatedFieldValue: String!
}
"""카테고리 body의 길이가 기준치보다 짧은 경우 발생"""
type CategoryBodyTooShortError {
"""위반 필드 값"""
violatedFieldName: String!
"""위반 사유 상세"""
detail: String
message: String!
"""전달된 카테고리 body 값"""
violatedFieldValue: String!
}
"""A connection to a list of items."""
type CategoryConnection {
"""Pagination data for this connection"""
pageInfo: PageInfo!
"""Contains the nodes in this connection"""
edges: [CategoryEdge!]!
"""Total quantity of existing nodes"""
totalCount: Int
}
"""An edge in a connection."""
type CategoryEdge {
"""A cursor for use in pagination"""
cursor: String!
"""The item at the end of the edge"""
node: Category!
}
"""카테고리 검색 인터페이스"""
input CategoryFilter {
"""검색할 카테고리의 ID"""
id: GlobalID!
}
input CategoryIDInput {
"""카테고리 ID"""
id: GlobalID!
}
"""카테고리 정렬 기준"""
enum CategorySortBy {
ID
LEXICOGRAPHICAL
CREATED_AT
"""선호 페르소나 수 기준"""
PERSONA_REFERENCE_CNT
"""연결된 게시물 수 기준"""
POST_CONNECTION_CNT
}
"""카테고리 목록 조회 시 적용할 정렬 방법"""
input CategorySortingOption {
"""정렬 기준"""
sortBy: CategorySortBy = ID
"""정렬 방향"""
direction: SortingDirection = ASC
}
type Challenge implements Node {
id: GlobalID!
"""제목"""
title: String!
"""생성 일시"""
createdAt: DateTime!
"""갱신 일시"""
updatedAt: DateTime!
}
"""A connection to a list of items."""
type ChallengeConnection {
"""Pagination data for this connection"""
pageInfo: PageInfo!
"""Contains the nodes in this connection"""
edges: [ChallengeEdge!]!
"""Total quantity of existing nodes"""
totalCount: Int
}
"""An edge in a connection."""
type ChallengeEdge {
"""A cursor for use in pagination"""
cursor: String!
"""The item at the end of the edge"""
node: Challenge!
}
type ChallengeObjective implements Node {
id: GlobalID!
"""도전과제"""
challenge: Challenge!
"""제목"""
title: String!
"""내용"""
content: String!
"""완수 여부"""
isDone: Boolean!
"""생성 일시"""
createdAt: DateTime!
"""갱신 일시"""
updatedAt: DateTime!
}
"""A connection to a list of items."""
type ChallengeObjectiveConnection {
"""Pagination data for this connection"""
pageInfo: PageInfo!
"""Contains the nodes in this connection"""
edges: [ChallengeObjectiveEdge!]!
"""Total quantity of existing nodes"""
totalCount: Int
}
"""An edge in a connection."""
type ChallengeObjectiveEdge {
"""A cursor for use in pagination"""
cursor: String!
"""The item at the end of the edge"""
node: ChallengeObjective!
}
type ChallengeObjectiveHistory implements Node {
id: GlobalID!
"""도전과제"""
challengeObjective: ChallengeObjective!
"""참여 페르소나"""
persona: Persona!
"""완료 여부"""
isDone: Boolean!
"""참여 일시"""
createdAt: DateTime!
}
type Comment implements Node {
id: GlobalID!
"""대상 게시물"""
post: Post!
"""작성자"""
persona: Persona!
"""댓글 본문"""
body: String!
"""작성 일시"""
createdAt: DateTime!
}
"""항목별 개수 통계"""
type CountStatistics {
"""단위"""
unit: String!
"""총 개수"""
totalCount: Int!
"""단위별 항목 개수"""
elements: [CountStatisticsElement!]!
}
"""특정 항목의 이름 및 개수"""
type CountStatisticsElement {
"""항목 이름"""
label: String!
"""항목 집계 횟수"""
count: Int!
}
union CreateCategoryResult = Category | AdminPermissionRequiredError | CategoryBodyDuplicatedError | CategoryBodyTooShortError | CategoryBodyTooLongError
input CreateChallengeInput {
title: String!
description: String!
maxPersonaCount: Int!
}
input CreateChallengeObjectiveInput {
title: String!
description: String!
challenge: GlobalID!
durationType: DurationType!
kind: ParticipateKind!
}
union CreatePersonaResult = Persona | AuthInfoRequiredError | PersonaNicknameDuplicatedError
"""게시물 생성 input"""
input CreatePostInput {
"""새 게시글 제목"""
title: String!
"""새 게시글 무료 본문"""
content: String!
"""새 게시글 유료 본문"""
paidContent: String = null
"""연결할 태그의 body 목록 (insert 됨)"""
tagBodies: [String!] = []
"""소속 카테고리"""
category: NodeInput
}
union CreatePostResult = Post | AuthInfoRequiredError | ResourceNotFoundError
"""Date with time (isoformat)"""
scalar DateTime
"""특정 날짜/시각 사이의 범위에 해당되는 데이터를 받아 오기 위한 인터페이스"""
input DatetimeBetween {
"""조회 시작 일시"""
startDt: DateTime = null
"""조회 종료 일시"""
endDt: DateTime = "2023-05-18T20:28:49.186711"
}
enum DurationType {
MONTHLY
DAILY
WEEKLY
}
"""이미 사용 중인 email로 생성/수정을 시도하려는 경우"""
type EmailAlreadyUsedError {
"""중복 필드 이름"""
violatedFieldName: String!
"""중복된 email 값"""
violatedFieldValue: String!
message: String!
}
"""특정 항목의 점수를 표시하기 위한 타입"""
type FieldScore {
"""항목의 이름"""
label: String!
"""점수"""
score: Int!
}
enum Gender {
MALE
FEMALE
}
"""성별 검색 인터페이스"""
input GenderFilter {
"""검색할 성별"""
gender: Gender!
}
input GetFollowingPersonaStatisticsInput {
"""응답될 항목의 최대 개수"""
resultLimit: Int = 100
}
enum GetMembershipAs {
"""구독자로서 조회"""
SUBSCRIBER
"""창작자로서 조회"""
CREATOR
}
"""요청한 사용자가 읽은 게시물에 대한 통계를 내기 위한 입력"""
input GetOwnReadPostStatisticsInput {
"""응답될 항목의 최대 개수"""
resultLimit: Int = 100
"""조회 기록 날짜 범위"""
datetimeBetween: StatisticsDatetimeBetween!
}
input GetPersonaFollowerStatisticsInput {
"""조회 대상 페르소나의 ID"""
personaId: GlobalID!
"""응답될 항목의 최대 개수"""
resultLimit: Int = 100
}
"""
The `ID` scalar type represents a unique identifier, often used to refetch an
object or as key for a cache. The ID type appears in a JSON response as a
String; however, it is not intended to be human-readable. When expected as an
input type, any string (such as `"4"`) or integer (such as `4`) input value will
be accepted as an ID.
"""
scalar GlobalID
"""사용자 목록 | signup method"""
enum GraphqlAppUserSignupMethodEnum {
EM
}
type ImageUploadUrl {
url: String!
fields: JSON!
}
"""공인 여부 검색 인터페이스"""
input IsCertifiedFilter {
"""공인 여부"""
isCertified: Boolean!
}
"""페르소나 직업"""
enum Job {
STUDENT
EDUCATOR
JOB_SEEKER
EMPLOYEE
IT
FINANCE
ART
ETC
}
"""직업 검색 인터페이스"""
input JobFilter {
"""검색할 직업"""
job: Job!
}
"""Input data for `joinChallenge` mutation"""
input JoinChallengeInput {
challengeId: GlobalID!
personaId: GlobalID!
}
union JoinChallengePayload = Challenge | OperationInfo
"""멤버쉽 가입 input"""
input JoinMembershipInput {
"""구독 대상 페르소나"""
creator: NodeInput!
"""티어"""
tier: Tier!
}
"""
The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
"""
scalar JSON
"""멤버쉽 가입 input"""
input LeaveMembershipInput {
"""구독 대상 페르소나"""
creator: NodeInput!
}
union LoginResult = User | AnonymousOnlyError | WrongCertInfoError
"""
구독자-창작자 멤버쉽
- 구독자 : 멤버쉽 = 1 : N
- 창작자 : 멤버쉽 = 1 : N
"""
type Membership implements Node {
id: GlobalID!
"""구독자 페르소나"""
subscriber: Persona!
"""창작자 페르소나"""
creator: Persona!
"""티어"""
tier: Tier!
"""생성 일시"""
createdAt: DateTime!
}
"""A connection to a list of items."""
type MembershipConnection {
"""Pagination data for this connection"""
pageInfo: PageInfo!
"""Contains the nodes in this connection"""
edges: [MembershipEdge!]!
"""Total quantity of existing nodes"""
totalCount: Int
}
"""An edge in a connection."""
type MembershipEdge {
"""A cursor for use in pagination"""
cursor: String!
"""The item at the end of the edge"""
node: Membership!
}
union MembershipJoinResult = Membership | AuthInfoRequiredError | PersonaContextRequiredError | AlreadyJoinedMembershipError
"""멤버쉽 정렬 기준"""
enum MembershipSortBy {
"""ID"""
ID
"""생성 일시"""
CREATED_AT
"""구독자 닉네임"""
SUBSCRIBER_NICKNAME
"""창작자 닉네임"""
CREATOR_NICKNAME
"""티어"""
TIER
}
"""멤버쉽 목록 조회시 적용할 정렬 방법"""
input MembershipSortingOption {
"""정렬 기준"""
sortBy: MembershipSortBy = ID
"""정렬 방향"""
direction: SortingDirection = ASC
}
type Mutation {
"""
username, email, password로 회원 가입을 시도한다.
단, username, email은 각각 Unique하다.
"""
register(username: String!, email: String!, password: String!): RegisterOrLoginResult!
"""username과 password로 로그인을 시도한다."""
login(username: String!, password: String!): LoginResult!
"""로그아웃을 수행한다."""
logout: Void
"""새 게시물을 생성한다."""
postCreate(newPostInput: CreatePostInput!): CreatePostResult!
"""게시물을 삭제한다."""
deletePost(postId: GlobalID!): Void
"""
특정 게시물에 대한 좋아요 토글을 수행한다.
수행 결과 좋아요 상태가 되었다면 True, 그렇지 않다면 False를 반환한다.
"""
postLikeToggle(postId: GlobalID!): Boolean!
"""
특정 게시물에 대한 북마크를 수행한다.
:return: 수행 결과 북마크 된 상태인 경우 True, 그렇지 않은 경우 False
"""
postBookmarkToggle(postId: GlobalID!): Boolean!
"""
특정 게시물에 댓글을 작성한다.
:return: 생성된 댓글
"""
writeComment(postId: GlobalID!, body: String!): Comment!
"""새 Persona를 생성한다."""
personaCreate(newPersonaInput: PersonaCreateInput!): CreatePersonaResult!
"""특정 페르소나에 대한 팔로우/언팔로우 토글을 수행한다."""
personaFollowToggle(personaFollowInput: PersonaFollowToggleInput!): PersonaFollowToggleResult!
"""
새 태그를 생성한다.
단, 중복되는 태그 이름이 있는 경우 기존의 태그를 반환한다.
"""
tagInsert(body: String!): UpsertTagResult!
"""새 카테고리를 생성한다."""
categoryCreate(body: String!): CreateCategoryResult!
"""특정 페르소나의 멤버쉽에 가입을 요청한다."""
joinMembership(joinInput: JoinMembershipInput!): MembershipJoinResult!
"""특정 페르소나의 멤버쉽에서 탈퇴한다."""
leaveMembership(leaveInput: LeaveMembershipInput!): PersonaContextRequiredError
createChallenge(input: CreateChallengeInput!): Challenge!
createChallengeObjective(input: CreateChallengeObjectiveInput!): ChallengeObjective!
toggleChallengeObjective(challengeObjectiveId: GlobalID!, personaId: GlobalID!): ChallengeObjectiveHistory!
joinChallenge(
"""Input data for `joinChallenge` mutation"""
input: JoinChallengeInput!
): JoinChallengePayload!
}
"""닉네임 검색 인터페이스"""
input NicknameFilter {
"""검색 모드"""
mode: StringFindMode = EXACTLY
"""검색 문자열"""
token: String!
}
"""An object with a Globally Unique ID"""
interface Node {
"""The Globally Unique ID of this object"""
id: GlobalID!
}
"""Input of an object that implements the `Node` interface."""
input NodeInput {
id: GlobalID!
}
"""Multiple messages returned by an operation."""
type OperationInfo {
"""List of messages returned by the operation."""
messages: [OperationMessage!]!
}
"""An error that happened while executing an operation."""
type OperationMessage {
"""The kind of this message."""
kind: OperationMessageKind!
"""The error message."""
message: String!
"""
The field that caused the error, or `null` if it isn't associated with any particular field.
"""
field: String
}
"""The kind of the returned message."""
enum OperationMessageKind {
INFO
WARNING
ERROR
PERMISSION
VALIDATION
}
"""Information to aid in pagination."""
type PageInfo {
"""When paginating forwards, are there more items?"""
hasNextPage: Boolean!
"""When paginating backwards, are there more items?"""
hasPreviousPage: Boolean!
"""When paginating backwards, the cursor to continue."""
startCursor: String
"""When paginating forwards, the cursor to continue."""
endCursor: String
}
enum ParticipateKind {
INDIVIDUAL
GROUP
}
"""요청된 작업에 대한 권한이 없을 경우 발생하는 에러"""
type PermissionDeniedError {
"""요구 권한"""
requiredPermission: String!
}
"""
구독자, 구독 대상, 컨텐츠 작성자에 해당되는 페르소나
User : Persona = 1 : N
"""
type Persona implements Node {
id: GlobalID!
"""소유자"""
owner: User!
"""닉네임 (unique)"""
nickname: String!
"""소개"""
introduction: String!
"""공개 여부"""
isPublic: Boolean!
"""성별"""
gender: Gender
"""생년"""
birthYear: Int
"""직업"""
job: String
"""공식 인증 여부"""
isCertified: Boolean!
preferredTags(
"""Returns the items in the list that come before the specified cursor."""
before: String = null
"""Returns the items in the list that come after the specified cursor."""
after: String = null
"""Returns the first n items from the list."""
first: Int = null
"""Returns the items in the list that come after the specified cursor."""
last: Int = null
): TagConnection!
preferredCategories(
"""Returns the items in the list that come before the specified cursor."""
before: String = null
"""Returns the items in the list that come after the specified cursor."""
after: String = null
"""Returns the first n items from the list."""
first: Int = null
"""Returns the items in the list that come after the specified cursor."""
last: Int = null
): CategoryConnection!
followingPersonas(
"""Returns the items in the list that come before the specified cursor."""
before: String = null
"""Returns the items in the list that come after the specified cursor."""
after: String = null
"""Returns the first n items from the list."""
first: Int = null
"""Returns the items in the list that come after the specified cursor."""
last: Int = null
): PersonaConnection!
followerPersonas(
"""Returns the items in the list that come before the specified cursor."""
before: String = null
"""Returns the items in the list that come after the specified cursor."""
after: String = null
"""Returns the first n items from the list."""
first: Int = null
"""Returns the items in the list that come after the specified cursor."""
last: Int = null
): PersonaConnection!
"""생성 일시"""
createdAt: DateTime!
"""갱신 일시"""
updatedAt: DateTime!
"""북마크 목록"""
bookmarks: [Bookmark!]!
"""좋아요 한 포스트 목록"""
likedPosts: [Post!]!
}
"""A connection to a list of items."""
type PersonaConnection {
"""Pagination data for this connection"""
pageInfo: PageInfo!
"""Contains the nodes in this connection"""
edges: [PersonaEdge!]!
"""Total quantity of existing nodes"""
totalCount: Int
}
"""Header 또는 Cookie를 통해 필요한 context를 얻을 수 없는 경우 발생"""
type PersonaContextRequiredError {
message: String!
"""요구되는 Header/Cookie의 key value"""
requriedKey: String!
}
"""페르소나 생성에 필요한 정보"""
input PersonaCreateInput {
"""닉네임 (unique)"""
nickname: String!
"""소개"""
introduction: String = "자기소개가 없습니다."
"""공개 여부"""
isPublic: Boolean = true
"""성별"""
gender: Gender = null
"""나이"""
birthYear: Int = null
"""직업"""
job: Job = null
"""선호하는 태그의 body 목록 (insert 됨)"""
preferredTagBodies: [String!] = []
"""선호 카테고리 목록"""
preferredCategories: [CategoryIDInput!] = []
}
"""An edge in a connection."""
type PersonaEdge {
"""A cursor for use in pagination"""
cursor: String!
"""The item at the end of the edge"""
node: Persona!
}
"""페르소나 팔로우/언팔로우 토글에 필요한 정보"""
input PersonaFollowToggleInput {
"""팔로우/언팔로우의 대상이 되는 페르소나의 ID"""
followeePersona: GlobalID!
}
"""페르소나 팔로우/언팔로우 토글 결과"""
type PersonaFollowToggleOutput {
"""팔로우/언팔로우 토글을 수행한 페르소나의 ID"""
followeePersona: GlobalID!
"""작업 수행 후 팔로우 여부"""
followed: Boolean!
}
union PersonaFollowToggleResult = PersonaFollowToggleOutput | AuthInfoRequiredError | PermissionDeniedError | SelfFollowError
"""이미 사용중인 nickname으로 페르소나 생성/갱신을 시도한 경우 발생"""
type PersonaNicknameDuplicatedError {
"""중복 필드 이름"""
violatedFieldName: String!
"""중복된 페르소나 닉네임 값"""
violatedFieldValue: String!
message: String!
}
"""페르소나 정렬 기준"""
enum PersonaSortBy {
"""ID"""
ID
"""닉네임"""
NICKNAME
"""생성 일시"""
CREATED_AT
"""게시물 총 조회수"""
TOTAL_POST_READ_CNT
"""팔로워 수"""
FOLLOWER_CNT
}
"""페르소나 목록 조회 시 적용할 정렬 방법"""
input PersonaSortingOption {
"""정렬 기준"""
sortBy: PersonaSortBy = CREATED_AT
"""정렬 방향"""
direction: SortingDirection = DESC
}
"""게시물 관련 통계 데이터 묶음"""
type PersonaStatistics {
"""태그 점수"""
tagScores: [FieldScore!]!
"""카테고리 점수"""
categoryScores: [FieldScore!]!
"""성별 점수"""
genderScores: [FieldScore!]!
"""생년 점수"""
birthYearScores: [FieldScore!]!
"""직업 점수"""
jobScores: [FieldScore!]!
}
type Post implements Node {
id: GlobalID!
"""글 제목"""
title: String!
"""글 내용"""
content: String!
"""글 내용 미리보기"""
contentPreview: String
"""유료 내용"""
paidContent: String
"""작성자"""
author: Persona!
"""공개 여부"""
isPublic: Boolean!
tags(
"""Returns the items in the list that come before the specified cursor."""
before: String = null
"""Returns the items in the list that come after the specified cursor."""
after: String = null
"""Returns the first n items from the list."""
first: Int = null
"""Returns the items in the list that come after the specified cursor."""
last: Int = null
): TagConnection!
"""소속 카테고리"""
category: Category
"""조회 요구 티어"""
requiredMembershipTier: Tier
"""좋아요 개수"""
likeCnt: Int!
"""댓글 목록"""
comments: [Comment!]!
"""댓글 갯수"""
commentCnt: Int!
"""북마크 개수"""
bookmarkCnt: Int!
"""생성 시각"""
createdAt: DateTime!
"""갱신 시각"""
updatedAt: DateTime!
}
"""A connection to a list of items."""
type PostConnection {
"""Pagination data for this connection"""
pageInfo: PageInfo!
"""Contains the nodes in this connection"""
edges: [PostEdge!]!
"""Total quantity of existing nodes"""
totalCount: Int
}
"""An edge in a connection."""
type PostEdge {
"""A cursor for use in pagination"""
cursor: String!
"""The item at the end of the edge"""