Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const root = {
- message: () => "Chuck Norris",
- }
- app.use('/graphql', express_graphql({
- schema: schema,
- rootValue: root,
- graphiql: true
- }));
- app.listen(8080, ()=> console.log('server running'));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement