Skip to content

Commit d493ab1

Browse files
authored
Merge pull request linode#93 from alioso/CT-985
CT-985 add manual recursion for introspection query
2 parents 56337ac + 3fa5999 commit d493ab1

File tree

1 file changed

+76
-1
lines changed

1 file changed

+76
-1
lines changed

gatsby-node.js

Lines changed: 76 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,16 @@ exports.createPages = async ({ actions, graphql }) => {
225225
type {
226226
fields {
227227
name
228+
type {
229+
fields {
230+
name
231+
type {
232+
fields {
233+
name
234+
}
235+
}
236+
}
237+
}
228238
}
229239
}
230240
}
@@ -264,6 +274,16 @@ exports.createPages = async ({ actions, graphql }) => {
264274
type {
265275
fields {
266276
name
277+
type {
278+
fields {
279+
name
280+
type {
281+
fields {
282+
name
283+
}
284+
}
285+
}
286+
}
267287
}
268288
}
269289
}
@@ -303,6 +323,16 @@ exports.createPages = async ({ actions, graphql }) => {
303323
type {
304324
fields {
305325
name
326+
type {
327+
fields {
328+
name
329+
type {
330+
fields {
331+
name
332+
}
333+
}
334+
}
335+
}
306336
}
307337
}
308338
}
@@ -342,6 +372,16 @@ exports.createPages = async ({ actions, graphql }) => {
342372
type {
343373
fields {
344374
name
375+
type {
376+
fields {
377+
name
378+
type {
379+
fields {
380+
name
381+
}
382+
}
383+
}
384+
}
345385
}
346386
}
347387
}
@@ -422,6 +462,21 @@ exports.createPages = async ({ actions, graphql }) => {
422462
type {
423463
fields {
424464
name
465+
type {
466+
fields {
467+
name
468+
type {
469+
fields {
470+
name
471+
type {
472+
fields {
473+
name
474+
}
475+
}
476+
}
477+
}
478+
}
479+
}
425480
}
426481
}
427482
}
@@ -453,6 +508,16 @@ exports.createPages = async ({ actions, graphql }) => {
453508
type {
454509
fields {
455510
name
511+
type {
512+
fields {
513+
name
514+
type {
515+
fields {
516+
name
517+
}
518+
}
519+
}
520+
}
456521
}
457522
}
458523
}
@@ -484,6 +549,16 @@ exports.createPages = async ({ actions, graphql }) => {
484549
type {
485550
fields {
486551
name
552+
type {
553+
fields {
554+
name
555+
type {
556+
fields {
557+
name
558+
}
559+
}
560+
}
561+
}
487562
}
488563
}
489564
}
@@ -515,7 +590,7 @@ exports.createPages = async ({ actions, graphql }) => {
515590
const fileName = `./src/components/0_fragments/api/${q.name}.jsx`;
516591
const props = result.data.__type.fields;
517592
const file = fs.createWriteStream(fileName);
518-
593+
519594
const query = recursiveQuery(props)
520595
.toString()
521596
.replace(/\,/g, "");

0 commit comments

Comments
 (0)