Skip to content

jercomio/GraphQL-API-Sample

Repository files navigation

GraphQL API Sample

version: 1.1.1

A GraphQL API sample with Apollo Server.
Type Safe

Features

Queries : users/books or user(userName, userEmail)/book(userName)
Mutations : add/update/delete user or book

Launch server

To launch the server, you have to execute in terminal this following command :

pnpm start

Environment variable

You need to add a token in .env file like :

APOLLO_TOKEN=

Apollo Studio Explorer

Then go to the Apollo Studio Explorer and configure the connection.

Apollo Sandbox URL

EndPoint: http://localhost:3000
Suscriptions: wss://localhost:3000

Config

And configure the headers:

Authorization: Bearer yourApolloToken

Now, you can trying to explore API !

Apollo Sandbox Explorer

👨🏽‍💻

About

A GraphQL API sample with Apollo Server.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published