Skip to content

janicetyp/apollo-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apollo-tutorial-kit (formerly apollo-starter-kit)

Starting point for the Apollo GraphQL Server tutorial.

See also Tutorial: How to build a GraphQL server and the solution in the server-tutorial-solution branch of this repo.

Up-to-date documentation and explanations for Apollo Server can be found on docs.apollostack.com

Getting started

git clone https://github.com/apollostack/apollo-starter-kit
cd apollo-starter-kit
npm install
npm start

In another terminal, start MongoDB

mongod

Then open http://localhost:3000/graphiql

When you paste this on the left side of the page:

{
  author(firstName: "Edmond", lastName: "Jones"){
    firstName
    lastName
  }
  getFortuneCookie
}

and hit the play button (cmd-return), then you should get this on the right side:

{
  "data": {
    "author": {
      "firstName": "Edmond",
      "lastName": "Jones"
    },
    "getFortuneCookie": "Winners never quit, quitters never win."
  }
}

About

Testing out GraphQL server that connects to multiple backends

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published