-
-
Save freiksenet/e239464b56203ab79f5e5b5aa50de648 to your computer and use it in GitHub Desktop.
This file contains 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
import { delegateToSchema } from 'graphql-tools'; | |
const resolvers = { | |
Blog: { | |
user(parent, args, context, info) { | |
return delegateToSchema({ | |
schema: userSchema, | |
operation: 'query', | |
fieldName: 'userById', | |
arges: { id: parent.userId }, | |
context, | |
info, | |
}); | |
}, | |
}, | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment