Created
January 14, 2017 06:48
-
-
Save bencooling/63cb1e57fa1fda983c67730d989e8f30 to your computer and use it in GitHub Desktop.
javascript: serverless
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
class MyPlugin { | |
constructor() { | |
this.commands = { | |
graphiql: { | |
usage: 'Creates graphiql server', | |
lifecycleEvents: ['start'], | |
}, | |
}; | |
this.hooks = { | |
'graphiql:start': this.graphiqlStart, | |
}; | |
} | |
graphiqlStart() { | |
console.log('start!'); | |
} | |
} | |
module.exports = MyPlugin; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment