Created
October 18, 2017 17:39
-
-
Save mxstbr/a25b08183916f6356de2d4e8cb4a80b4 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 createLogger from 'graphql-log'; | |
let list = []; | |
const logExecutions = createLogger({ | |
logger: (name) => { | |
list.push(name); | |
fs.writeFileSync('resolvers.js', JSON.stringify(list, null, 2)); | |
}, | |
}); | |
logExecutions(resolvers); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment