-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
114 lines (97 loc) · 1.92 KB
/
Copy pathschema.graphql
File metadata and controls
114 lines (97 loc) · 1.92 KB
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
# Generated programmatically from model: Country
type Country implements Node {
code: String
created_at: Date
id: ID!
name: String
timezone: String
updated_at: Date
}
# Date since epoch in seconds
scalar Date
# Generated programmatically from model: Network
type Network implements Node {
country: Country
country_id: Int
created_at: Date
id: ID!
name: String
updated_at: Date
}
# An object with an ID.
interface Node {
# ID of the object.
id: ID!
}
# SQL Operators for compiling query variables
enum Operators {
# SQL exact match with equal
EQ
# SQL greater-than match with >
GT
# SQL greater-than or equal match with >=
GTE
# SQL Fuzzy match using LIKE operand
LIKE
# SQL less-than match with <
LT
# SQL less-than or equal match with <=
LTE
}
type Query {
# Fetches an object given its ID.
node(
# ID of the object.
id: ID!
): Node
# Fetches a list of objects given a list of IDs.
nodes(
# IDs of the objects.
ids: [ID!]!
): [Node]!
# Find a Show by ID
show(id: ID!): Show
shows(
# The IDs of the shows
ids: [ID]
# The offset of shows to return
offset: Int
# The limit of shows to return
limit: Int
# Sample InputObjectType testing
where: [Where]
): [Show]!
}
# Generated programmatically from model: Show
type Show implements Node {
created_at: Date
id: ID!
imdb_id: String
language: String
medium_content_type: String
medium_file_name: String
medium_file_size: Int
medium_updated_at: Date
name: String
network: Network
network_id: Int
original_content_type: String
original_file_name: String
original_file_size: Int
original_updated_at: Date
premiered: Date
runtime: Int
show_type: String
status: String
summary: String
thetvdb_id: String
tvmaze_id: Int
tvrage_id: String
updated_at: Date
url: String
}
input Where {
field: String
value: String
operator: Operators
}