title: How to call GraphQL API from Node.js/Express server?
body: <p>I recently implemented a schema and some resolvers for my Express server. I tested them successfully through <code>/graphql</code> and now I would like to call the queries I implemented when accessing from a REST API, like so:</p>
  
  <pre><code>//[...]
  //schema and root correctly implemented and working
  app.use('/graphql', graphqlHTTP({
    schema: schema,
    rootValue: root,
    graphiql: true,
  }));
  
  //I start the server
  app.listen(port, () =&gt; {
    console.log('We are live on ' + port);
  });
  
  //one of many GET handlers
  app.get("/mdc/all/:param", function(req, res) {
      //call one of the (parametrized) queries here
      //respond with the JSON result
  });
  </code></pre>
  
  <p>How can I call the queries I defined with GraphQL inside my GET handlers? How do I pass parameters to them?</p>
  
  <p>Thank you!</p>