-
-
Save sericaia/61a10c96a88c054f41fd1cf104158216 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
// resolver code | |
employee: async (root, { email, slackId }, { dataSources }) => { | |
// at least one of the parameters is required | |
if (!email && !slackId) { | |
throw new Error('Email or SlackId are required.'); | |
} | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment