Advertisement
Guest User

Untitled

a guest
Feb 16th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. const root = {
  2. message: () => "Chuck Norris",
  3. }
  4.  
  5. app.use('/graphql', express_graphql({
  6. schema: schema,
  7. rootValue: root,
  8. graphiql: true
  9. }));
  10.  
  11. app.listen(8080, ()=> console.log('server running'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement