neat - Nodejs + Express + Apollo server + Type-graphql
A nodejs server app demo integrate with express, type-graphql, apollo server and gorest open api.
1. Go to gorest sign in page to get a token: https://gorest.co.in/user/login.html;
context: (integrationContext: { req: http.IncomingMessage, res: http.ServerResponse }) => {
let ctx: Context = {
req: integrationContext.req,
res: integrationContext.res,
mode: <any>process.env['NODE_ENV'] || 'development',
baseUrl: getBaseUrl(),
// TODO: kevinzhang paste the real token for gorest
token: '###token###'
}
return ctx;
},