@@ -74,8 +74,6 @@ type Directory implements Node @dontInfer {
74
74
type Site implements Node @dontInfer {
75
75
buildTime : Date @dateformat
76
76
siteMetadata : SiteSiteMetadata
77
- port : Int
78
- host : String
79
77
polyfill : Boolean
80
78
pathPrefix : String
81
79
jsxRuntime : String
@@ -124,12 +122,11 @@ type SiteBuildMetadata implements Node @dontInfer {
124
122
125
123
interface ContentfulReference implements Node {
126
124
id : ID !
127
- sys : ContentfulSys
125
+ sys : ContentfulSys !
128
126
}
129
127
130
- type ContentfulSys {
128
+ type ContentfulSys implements Node @dontInfer {
131
129
type : String !
132
- id : String !
133
130
spaceId : String !
134
131
environmentId : String !
135
132
contentType : ContentfulContentType @link (by : " id" , from : " contentType___NODE" )
@@ -145,13 +142,27 @@ type ContentfulContentType implements Node @dontInfer {
145
142
description : String !
146
143
}
147
144
148
- interface ContentfulEntry implements Node {
145
+ interface ContentfulEntry implements ContentfulReference & Node {
149
146
id : ID !
150
- sys : ContentfulSys
147
+ sys : ContentfulSys !
148
+ metadata : ContentfulMetadata !
149
+ }
150
+
151
+ type ContentfulMetadata @dontInfer {
152
+ tags : [ContentfulTag ]! @link (by : " id" , from : " tags___NODE" )
153
+ }
154
+
155
+ type ContentfulTag implements Node @dontInfer {
156
+ name : String !
157
+ contentful_id : String !
158
+ }
159
+
160
+ type ContentfulAssetFields @dontInfer {
161
+ localFile : File @link (by : " id" )
151
162
}
152
163
153
164
type ContentfulAsset implements ContentfulReference & Node @dontInfer {
154
- sys : ContentfulSys
165
+ sys : ContentfulSys !
155
166
title : String
156
167
description : String
157
168
contentType : String
@@ -163,15 +174,6 @@ type ContentfulAsset implements ContentfulReference & Node @dontInfer {
163
174
fields : ContentfulAssetFields
164
175
}
165
176
166
- type ContentfulAssetFields {
167
- localFile : String
168
- }
169
-
170
- type ContentfulTag implements Node @dontInfer {
171
- name : String !
172
- contentful_id : String !
173
- }
174
-
175
177
type ContentfulRichTextAssets {
176
178
block : [ContentfulAsset ]!
177
179
hyperlink : [ContentfulAsset ]!
@@ -203,7 +205,8 @@ type ContentfulText implements Node @dontInfer {
203
205
}
204
206
205
207
type ContentfulContentTypeNumber implements ContentfulReference & ContentfulEntry & Node @dontInfer {
206
- sys : ContentfulSys
208
+ sys : ContentfulSys !
209
+ metadata : ContentfulMetadata !
207
210
title : String
208
211
integer : Int
209
212
integerLocalized : Int
@@ -212,7 +215,8 @@ type ContentfulContentTypeNumber implements ContentfulReference & ContentfulEntr
212
215
}
213
216
214
217
type ContentfulContentTypeText implements ContentfulReference & ContentfulEntry & Node @dontInfer {
215
- sys : ContentfulSys
218
+ sys : ContentfulSys !
219
+ metadata : ContentfulMetadata !
216
220
title : String
217
221
short : String
218
222
shortLocalized : String
@@ -224,7 +228,8 @@ type ContentfulContentTypeText implements ContentfulReference & ContentfulEntry
224
228
}
225
229
226
230
type ContentfulContentTypeMediaReference implements ContentfulReference & ContentfulEntry & Node @dontInfer {
227
- sys : ContentfulSys
231
+ sys : ContentfulSys !
232
+ metadata : ContentfulMetadata !
228
233
title : String
229
234
one : ContentfulAsset @link (by : " id" , from : " one___NODE" )
230
235
oneLocalized : ContentfulAsset @link (by : " id" , from : " oneLocalized___NODE" )
@@ -233,14 +238,16 @@ type ContentfulContentTypeMediaReference implements ContentfulReference & Conten
233
238
}
234
239
235
240
type ContentfulContentTypeBoolean implements ContentfulReference & ContentfulEntry & Node @dontInfer {
236
- sys : ContentfulSys
241
+ sys : ContentfulSys !
242
+ metadata : ContentfulMetadata !
237
243
title : String
238
244
boolean : Boolean
239
245
booleanLocalized : Boolean
240
246
}
241
247
242
248
type ContentfulContentTypeDate implements ContentfulReference & ContentfulEntry & Node @dontInfer {
243
- sys : ContentfulSys
249
+ sys : ContentfulSys !
250
+ metadata : ContentfulMetadata !
244
251
title : String
245
252
date : Date @dateformat
246
253
dateTime : Date @dateformat
@@ -249,44 +256,53 @@ type ContentfulContentTypeDate implements ContentfulReference & ContentfulEntry
249
256
}
250
257
251
258
type ContentfulContentTypeLocation implements ContentfulReference & ContentfulEntry & Node @dontInfer {
252
- sys : ContentfulSys
259
+ sys : ContentfulSys !
260
+ metadata : ContentfulMetadata !
253
261
title : String
254
262
location : ContentfulLocation
255
263
locationLocalized : ContentfulLocation
256
264
}
257
265
258
266
type ContentfulContentTypeJson implements ContentfulReference & ContentfulEntry & Node @dontInfer {
259
- sys : ContentfulSys
267
+ sys : ContentfulSys !
268
+ metadata : ContentfulMetadata !
260
269
title : String
261
270
json : JSON
262
271
jsonLocalized : JSON
263
272
}
264
273
265
274
type ContentfulContentTypeRichText implements ContentfulReference & ContentfulEntry & Node @dontInfer {
266
- sys : ContentfulSys
275
+ sys : ContentfulSys !
276
+ metadata : ContentfulMetadata !
267
277
title : String
268
278
richText : ContentfulRichText
269
279
richTextLocalized : ContentfulRichText
270
280
richTextValidated : ContentfulRichText
271
281
}
272
282
273
- type ContentfulContentTypeContentReference implements ContentfulReference & ContentfulEntry & Node @dontInfer {
274
- sys : ContentfulSys
283
+ type ContentfulContentTypeContentReference implements ContentfulReference & ContentfulEntry & Node @isPlaceholder @dontInfer {
284
+ sys : ContentfulSys !
285
+ metadata : ContentfulMetadata !
275
286
title : String
276
287
one : ContentfulEntry @link (by : " id" , from : " one___NODE" )
277
288
oneLocalized : ContentfulEntry @link (by : " id" , from : " oneLocalized___NODE" )
278
- many : [ContentfulEntry ] @link (by : " id" , from : " many___NODE" )
289
+ many : [UnionContentfulContentReferenceNumberText ] @link (by : " id" , from : " many___NODE" )
279
290
manyLocalized : [ContentfulEntry ] @link (by : " id" , from : " manyLocalized___NODE" )
280
291
}
281
292
293
+ union UnionContentfulContentReferenceNumberText = ContentfulContentTypeContentReference | ContentfulContentTypeNumber | ContentfulContentTypeText
294
+
295
+ union UnionContentfulNumberText = ContentfulContentTypeNumber | ContentfulContentTypeText
296
+
282
297
type ContentfulContentTypeValidatedContentReference implements ContentfulReference & ContentfulEntry & Node @dontInfer {
283
- sys : ContentfulSys
298
+ sys : ContentfulSys !
299
+ metadata : ContentfulMetadata !
284
300
title : String
285
- oneItemSingleType : ContentfulEntry @link (by : " id" , from : " oneItemSingleType___NODE" )
286
- oneItemManyTypes : ContentfulEntry @link (by : " id" , from : " oneItemManyTypes___NODE" )
301
+ oneItemSingleType : ContentfulContentTypeText @link (by : " id" , from : " oneItemSingleType___NODE" )
302
+ oneItemManyTypes : UnionContentfulNumberText @link (by : " id" , from : " oneItemManyTypes___NODE" )
287
303
oneItemAllTypes : ContentfulEntry @link (by : " id" , from : " oneItemAllTypes___NODE" )
288
- multipleItemsSingleType : [ContentfulEntry ] @link (by : " id" , from : " multipleItemsSingleType___NODE" )
289
- multipleItemsManyTypes : [ContentfulEntry ] @link (by : " id" , from : " multipleItemsManyTypes___NODE" )
304
+ multipleItemsSingleType : [ContentfulContentTypeText ] @link (by : " id" , from : " multipleItemsSingleType___NODE" )
305
+ multipleItemsManyTypes : [UnionContentfulNumberText ] @link (by : " id" , from : " multipleItemsManyTypes___NODE" )
290
306
multipleItemsAllTypes : [ContentfulEntry ] @link (by : " id" , from : " multipleItemsAllTypes___NODE" )
291
307
}
292
308
@@ -317,7 +333,7 @@ type MarkdownWordCount {
317
333
words : Int
318
334
}
319
335
320
- type MarkdownRemark implements Node @childOf (mimeTypes : ["text/markdown" , " text/x-markdown" ], types : ["ContentfulText" ]) @dontInfer {
336
+ type MarkdownRemark implements Node @childOf (mimeTypes : ["text/markdown" , " text/x-markdown" ], types : ["ContentfulText" ]) @derivedTypes @ dontInfer {
321
337
frontmatter : MarkdownRemarkFrontmatter
322
338
excerpt : String
323
339
rawMarkdownBody : String
@@ -481,7 +497,7 @@ type ImageSharpResize {
481
497
originalName : String
482
498
}
483
499
484
- type ImageSharp implements Node @childOf (mimeTypes : [], types : ["File" ]) @dontInfer {
500
+ type ImageSharp implements Node @childOf (types : ["File" ]) @dontInfer {
485
501
fixed (width : Int , height : Int , base64Width : Int , jpegProgressive : Boolean = true , pngCompressionSpeed : Int = 4 , grayscale : Boolean = false , duotone : DuotoneGradient , traceSVG : Potrace , quality : Int , jpegQuality : Int , pngQuality : Int , webpQuality : Int , toFormat : ImageFormat = AUTO , toFormatBase64 : ImageFormat = AUTO , cropFocus : ImageCropFocus = ATTENTION , fit : ImageFit = COVER , background : String = " rgba(0,0,0,1)" , rotate : Int = 0 , trim : Float = 0 ): ImageSharpFixed
486
502
fluid (
487
503
maxWidth : Int
@@ -652,7 +668,7 @@ enum GatsbyImagePlaceholder {
652
668
NONE
653
669
}
654
670
655
- type ContentfulContentTypeContentType implements Node @dontInfer {
671
+ type ContentfulContentTypeContentType implements Node @derivedTypes @ dontInfer {
656
672
name : String
657
673
displayField : String
658
674
description : String
0 commit comments