Skip to content

Commit d577261

Browse files
authored
fix(gatsby-source-graphcms): Make gatsbyImageData nullable (#181)
1 parent e1b1627 commit d577261

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

gatsby-source-graphcms/src/gatsby-node.js

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,16 @@ export function createResolvers(
358358

359359
createResolvers({
360360
[typeName]: {
361-
gatsbyImageData: getGatsbyImageResolver(resolveGatsbyImageData, {
362-
quality: {
363-
type: 'Int',
364-
description:
365-
'The default image quality generated. This is overridden by any format-specific options.',
366-
},
367-
}),
361+
gatsbyImageData: {
362+
...getGatsbyImageResolver(resolveGatsbyImageData, {
363+
quality: {
364+
type: 'Int',
365+
description:
366+
'The default image quality generated. This is overridden by any format-specific options.',
367+
},
368+
}),
369+
type: 'JSON',
370+
},
368371
},
369372
})
370373
}

0 commit comments

Comments
 (0)