/azapollogplts

Apollo GraphQL integrated in Azure Function with TypeScript

Primary LanguageTypeScript

"# azapollogplts"

Apollo GraphQL starter on Azure Function with TypeScript support

Use this template to start building Apollo GraphQL function on Azure Function. This project is configured to support TypeScript inside Azure function, and

Compile Typescript code

The TypeScript code need to be compiled before function can be tested locally. To do that run command

npm run build

Running locally

To run locally, open the development server with the following command:

npm i
npm run build
func host start

Next, open http://localhost:3000 in your browser to see the result.

On Azure Function

On newer versions of Apollo GraphQL server, the Apollo GraphQL Explorer is hosted on Apollo cloud. Enable CORS on URL "https://studio.apollographql.com/" to enable Explorer access to Azure Function instance.