An open API service indexing awesome lists of open source software.

https://github.com/masaok/apollo-server-vercel-demo

Hosting GraphQL API on Vercel Demo
https://github.com/masaok/apollo-server-vercel-demo

graphql vercel

Last synced: about 2 months ago
JSON representation

Hosting GraphQL API on Vercel Demo

Awesome Lists containing this project

README

          

# apollo-server-vercel

A quick demo showing how to host an [Apollo server](https://www.apollographql.com/docs/apollo-server/) on [Vercel](https://vercel.com/).

## Demo

Type the following command in your terminal to test:

```bash
curl --location --request POST 'https://apollo-server-vercel-eight.vercel.app/graphql' \
--header 'Content-Type: application/json' \
--data-raw '{"query":"{\n hello\n}","variables":{}}'
```

## Credits

https://medium.com/@sppericat/how-to-setup-an-apollo-graphql-server-on-vercel-cc3f2dd72b3e