mirror of
https://github.com/hasura/graphql-engine.git
synced 2025-01-07 08:13:18 +03:00
d6a3cf337f
A hello world schema is provided with local dev and deployment instructions for AWS Lambda, Google Cloud Functions and Azure Functions. Older boilerplates are cleaned up.
17 lines
355 B
JavaScript
17 lines
355 B
JavaScript
const { ApolloServer } = require("apollo-server-azure-functions");
|
|
const { typeDefs, resolvers } = require('./server');
|
|
|
|
const server = new ApolloServer({
|
|
typeDefs,
|
|
resolvers,
|
|
});
|
|
|
|
module.exports = server.createHandler({
|
|
cors: {
|
|
origin: '*',
|
|
credentials: true,
|
|
allowedHeaders: 'Content-Type, Authorization'
|
|
},
|
|
});
|
|
|