-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.graphql
More file actions
187 lines (152 loc) · 3.14 KB
/
schema.graphql
File metadata and controls
187 lines (152 loc) · 3.14 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
# This file was generated based on ".graphqlconfig". Do not edit manually.
schema {
query: Query
}
union Entry = Category | Homepage | Person | Post | Tag
union Homepage_Parts = Homepage_Parts_PostsListSection | Homepage_Parts_TextSection
union K4oAssetMetadata = K4oAssetImageMetadata
union Post_Authors = Person
union Post_Category = Category
union Post_Content = Post_Content_GallerySection | Post_Content_InstagramEmbed | Post_Content_MarkdownSection
union Post_Tags = Tag
type Category {
_metadata: K4oEntryMetadata
description: String!
title: String!
}
type Homepage {
_metadata: K4oEntryMetadata
intro: String!
parts: [Homepage_Parts]!
}
type Homepage_Parts_PostsListSection {
_metadata: K4oEntryMetadata
title: String!
}
type Homepage_Parts_TextSection {
_metadata: K4oEntryMetadata
text: String!
title: String!
}
type K4oAsset {
assetUuid: UUID!
createdAt: Date!
filePath: String!
metadata: K4oAssetMetadata
mimeType: String!
name: String!
path: String!
publicUrl: String!
updatedAt: Date!
}
type K4oAssetImageMetadata {
height: Int!
width: Int!
}
type K4oEntryMetadata {
contentTypeUuid: UUID!
createdAt: Date!
entryUuid: UUID!
name: String!
path: String!
updatedAt: Date!
}
type Person {
_metadata: K4oEntryMetadata
bio: String!
firstName: String!
lastName: String!
}
type Post {
_metadata: K4oEntryMetadata
authors: [Post_Authors]!
category: Post_Category
content: [Post_Content]!
coverImage: K4oAsset
tags: [Post_Tags]!
title: String!
}
type Post_Content_GallerySection {
_metadata: K4oEntryMetadata
images: [K4oAsset]!
}
type Post_Content_InstagramEmbed {
_metadata: K4oEntryMetadata
url: String!
}
type Post_Content_MarkdownSection {
_metadata: K4oEntryMetadata
markdown: String!
}
type Query {
category(path: String!): Category
entries(filters: K4oEntriesFilters, limit: Int!, offset: Int!, orderBy: [K4oEntriesOrder!]): [Entry!]!
homepage(path: String!): Homepage
person(path: String!): Person
post(path: String!): Post
tag(path: String!): Tag
}
type Tag {
_metadata: K4oEntryMetadata
name: String!
}
enum K4oEntriesOrderField {
CREATED_AT
NAME
PATH
UPDATED_AT
}
enum K4oOrderDirection {
ASC
DESC
}
input K4oEntriesFilters {
and: [K4oEntriesFilters!]
contentType: K4oStringFilters
contentTypeUuid: K4oUuidFilters
createdAt: K4oTimeFilters
entryUuid: K4oUuidFilters
name: K4oStringFilters
or: [K4oEntriesFilters!]
path: K4oPathFilters
relations: K4oEntriesRelationsFilters
updatedAt: K4oTimeFilters
}
input K4oEntriesOrder {
direction: K4oOrderDirection
field: K4oEntriesOrderField
}
input K4oEntriesRelationsFilters {
contains: K4oEntriesRelationsFiltersContains
}
input K4oEntriesRelationsFiltersContains {
field: String
path: String!
}
input K4oPathFilters {
childrenOf: String
descendantsOf: String
eq: String
ne: String
}
input K4oStringFilters {
contains: String
endsWith: String
eq: String
ne: String
startsWith: String
}
input K4oTimeFilters {
dateEq: Date
dateNe: Date
gt: Date
gte: Date
lt: Date
lte: Date
}
input K4oUuidFilters {
eq: UUID
ne: UUID
}
scalar UUID
scalar Date