Closed safaiyeh closed 6 years ago
You can mount PostGraphQL as an express middleware, so just do that after you mount the logging middleware
Using ExpressJS
const express = require('express');
const app = express();
const postgraphql = require('postgraphql').postgraphql;
const morgan = require('morgan');
app.use(morgan('dev'));
app.use(postgraphql(POSTGRES_CONNECTION, SCHEMA_NAME, OPTIONS);
[semi-automated message] To keep things manageable I'm going to close this issue as I think it's solved; but if not or you require further help please re-open it. (Thanks @amizz )
How can I implement this?