Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export const createAPIServer = async (config: CycloneConfig): Promise => {
const api = new Hapi.Server(
{
//This should be in the config
port: 8087
}
)
const schema = makeExecutableSchema(
{
typeDefs,
resolvers,
resolverValidationOptions: {
requireResolversForResolveType: false
}
}
)
const apolloServer = new ApolloServer(
{
schema,
context: {
db: prisma
}
}