Skip to content

speedingplanet/graphql-server-class

Repository files navigation

GraphQL Server using Apollo Server

These are the class files for the GraphQL Server using Apollo Server class

Setup

Clone this repository.

cd graphql-server-class
npm install
npm run start:demos

You should see a message that looks like this:

❯ npm run start:demos

> graphql-server-class@1.0.0 start:demos
> npm start --workspace=demos


> demos@1.0.0 start
> node index.js

🚀  Server ready at: http://localhost:4000/

Open a browser and set the location to http://localhost:4000/. You should see the Apollo Server Sandbox, which looks like this:

Apollo Server Sandbox in it's initial state

Click on the "+" sign next to "Query", then the "+" under "Fields" next to "greeting". The panel will update so you can select the "+" next to "message". Your browser window should look like this:

Apollo Server Sandbox ready to run a query

Locate the "▶️ Query" button in the upper-right corner of the middle panel. Click on it. The "Response" panel should fill in and your browser window should look like this:

Apollo Server Sandbox with a response

You have run a successful test of the server and you're done!

About

GraphQL Server using Apollo Server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published