Created
June 8, 2021 14:21
-
-
Save ashhitch/2f005bbcb73abb4d0eb4833af32cfe38 to your computer and use it in GitHub Desktop.
Revisions
-
ashhitch created this gist
Jun 8, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,21 @@ exports.createResolvers = function({ actions,cache,createNodeId,createResolvers,store,reporter }) { const { createNode } = actions; createResolvers({ HATCH_ContentMediaItemType: { imageFile: { type: `File`, resolve(source, args, context, info) { return createRemoteFileNode({ url: source.filePath, store, cache, createNode, createNodeId, reporter, }) }, }, }, }) }