Created
January 21, 2018 01:48
-
-
Save eduardojmatos/25b5f267d91db8be5f95fcd0da779ac1 to your computer and use it in GitHub Desktop.
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 characters
const serviceStitching = function (mergeInfo) { | |
return { | |
Service: { | |
category: { | |
fragment: 'fragment CategoryTypeFragment on Category { slug }', | |
resolve(parent, args, context, info) { | |
return mergeInfo.delegate( | |
'query', | |
'category', | |
{ slug: parent.categorySlug }, | |
context, | |
info, | |
); | |
}, | |
}, | |
}, | |
}; | |
}; | |
export default serviceStitching; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment