-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsearch.graphqls
70 lines (64 loc) · 1.36 KB
/
search.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
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
interface SearchResultItem {
id: ID!
legacyID: ID
collection: String!
title: String!
header: String
description: String
highlight: String
image: String
url: String!
}
type EpisodeSearchItem implements SearchResultItem {
id: ID!
legacyID: ID
legacyProgramID: ID
duration: Int!
ageRating: String!
collection: String!
title: String!
header: String
description: String
highlight: String
image: String
url: String!
showId: ID
showTitle: String
show: Show @goField(forceResolver: true)
seasonId: ID
seasonTitle: String
season: Season @goField(forceResolver: true)
}
type SeasonSearchItem implements SearchResultItem {
id: ID!
legacyID: ID
ageRating: String!
collection: String!
title: String!
header: String
description: String
highlight: String
image: String
url: String!
showId: ID!
showTitle: String!
show: Show! @goField(forceResolver: true)
}
type ShowSearchItem implements SearchResultItem {
id: ID!
legacyID: ID
collection: String!
title: String!
header: String
description: String
highlight: String
image: String
url: String!
show: Show! @goField(forceResolver: true)
}
type SearchResult {
hits: Int!
page: Int!
result: [SearchResultItem!]!
searchProvider: String!
}