title: Can't get express-graphql to pass along passport user field
body: <p>My express setup looks something like this:</p>
  
  <pre><code>// Set up router for the /api route.
  const apiRouter = express.Router();
  
  // Passport auth only applies to /api endpoints, not static resources
  // or js bundles.
  apiRouter.use(passport.initialize());
  
  // (more passport initialization omitted for clarity)
  // (other routes are added here, also omitted)
  
  // Set up the graphql middleware
  apiRouter.use('/gql', graphql(req =&gt; ({
    schema,
    rootValue: { db: req.db, user: req.user, req },
  }));
  
  // Now add the router to our app
  app.use('/api', apiRouter);
  </code></pre>
  
  <p>Exerything works except that <code>req.user</code> is always <code>undefined</code> in my graphql resolver methods. All of the other routes that are added to apiRouter can see <code>req.user</code> just fine. Other attributes on the request object like <code>req.db</code> work everywhere. It's almost as if the graphql middleware was executing before the passport middleware, but my understanding is that the middleware that is declared first also executes first.</p>