-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
70 lines (60 loc) · 1.06 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
schema {
query: Query
mutation: Mutation
}
type Query {
cinemas(
criterias: CinemaSearchCriterias
pagination: Pagination = { page: 1, perPage: 20 }
order: Order
): [Cinema!]!
# movies(
# criterias: MovieSearchCriterias
# pagination: Pagination = { page: 1, perPage: 20 }
# order: Order
# ): [Movie!]!
}
type Mutation {
noop: Boolean!
}
scalar Order
enum EExposedFormat {
FULLHD
F4K
F3D
F4D
}
type Cinema {
id: ID! @juniper(ownership: "owned")
name: String!
movies(
criterias: MovieSearchCriterias
pagination: Pagination = { perPage: 20 }
order: Order
): [PlannedMovie!]!
}
type PlannedMovie {
id: ID! @juniper(ownership: "owned")
exposedFormat: EExposedFormat
pixelsBox: [Float!]
movie: Movie!
}
type Movie {
id: ID! @juniper(ownership: "owned")
name: String!
description: String
pixelsBox: [Float!]
path: String
}
input Pagination {
page: Int
perPage: Int
}
input CinemaSearchCriterias {
name: String
nameContains: String
}
input MovieSearchCriterias {
name: String
path: String
}