-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.graphql
84 lines (73 loc) · 1.49 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
directive @embedded on OBJECT
directive @collection(name: String!) on OBJECT
directive @index(name: String!) on FIELD_DEFINITION
directive @resolver(
name: String
paginated: Boolean! = false
) on FIELD_DEFINITION
directive @relation(name: String) on FIELD_DEFINITION
directive @unique(index: String) on FIELD_DEFINITION
type Animation {
_id: ID!
html: String!
hexcode1: String!
hexcode2: String!
_ts: Long!
}
input AnimationInput {
html: String!
hexcode1: String!
hexcode2: String!
}
type AnimationPage {
data: [Animation]!
after: String
before: String
}
scalar Date
scalar Long
type Morph {
_id: ID!
data: String!
hexcode1: String!
hexcode2: String!
_ts: Long!
}
input MorphInput {
data: String!
hexcode1: String!
hexcode2: String!
}
type MorphPage {
data: [Morph]!
after: String
before: String
}
type Mutation {
createMorph(data: MorphInput!): Morph!
createAnimation(data: AnimationInput!): Animation!
updateMorph(
id: ID!
data: MorphInput!
): Morph
deleteMorph(id: ID!): Morph
updateAnimation(
id: ID!
data: AnimationInput!
): Animation
deleteAnimation(id: ID!): Animation
}
type Query {
sayHello: String!
morphs(
_size: Int
_cursor: String
): MorphPage!
findMorphByID(id: ID!): Morph
animations(
_size: Int
_cursor: String
): AnimationPage!
findAnimationByID(id: ID!): Animation
}
scalar Time