-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpersons.graphqls
43 lines (36 loc) · 1.02 KB
/
persons.graphqls
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
type ContributionType {
code: String!
title: String! @goField(forceResolver: true)
}
type ContributionTypeCount {
type: ContributionType!
count: Int!
}
type ContentType {
code: String!
title: String! @goField(forceResolver: true)
}
type ContentTypeCount {
type: ContentType!
count: Int!
}
type ContributionsPagination implements Pagination {
total: Int!
first: Int!
offset: Int!
items: [Contribution!]!
}
union ContributionItem = Episode | Chapter
type Person {
id: ID!
name: String!
image(style: ImageStyle): String @goField(forceResolver: true)
contributionTypes: [ContributionTypeCount!]! @goField(forceResolver: true)
contributionContentTypes: [ContentTypeCount!]! @goField(forceResolver: true)
contributions(first: Int, offset: Int, types: [String!], contentTypes: [String!], shuffle: Boolean): ContributionsPagination! @goField(forceResolver: true)
}
type Contribution {
type: ContributionType!
contentType: ContentType!
item: ContributionItem!
}