This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as awsServerlessExpress from 'aws-serverless-express'; | |
import * as express from 'express'; | |
import * as xhub from 'express-x-hub'; | |
import * as bodyParser from 'body-parser'; | |
import * as AWS from 'aws-sdk'; | |
import { customDomainReroute } from '@turinggroup/serverless-express-custom-domain-middleware'; | |
const sns = new AWS.SNS(); | |
const app = express(); | |
app.use( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { GraphQLServer, Options } from 'graphql-yoga' | |
import { mergeSchemas } from 'graphql-tools'; | |
import { getRemoteSchema } from "./remoteSchema"; | |
if (process.env.NODE_ENV !== 'production') { | |
require('dotenv').config() | |
} | |
const start = async () => { | |
const messageSchema = await getRemoteSchema(process.env.MESSAGE_SERVICE_GRAPHQL_URL, process.env.MESSAGE_SERVICE_SUBSCRIPTION_URL); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { GraphQLServer, Options } from 'graphql-yoga' | |
import { mergeSchemas } from 'graphql-tools'; | |
import { getRemoteSchema } from "./remoteSchema"; | |
import { SubscriptionClient } from 'subscriptions-transport-ws'; | |
import * as ws from 'ws'; | |
if (process.env.NODE_ENV !== 'production') { | |
require('dotenv').config() | |
} |