Skip to content

ffcabbar/graphql-yoga-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

graphql-yoga-example

A simple example of a graphql server.

Eat and Fun

This directory contains a simple "Random Eat and Fun" example based on graphql-yoga.

Get started

Clone the repository:

git clone https://github.com/ffcabbar/graphql-yoga-example.git

Install dependencies and run the app:

yarn install # or npm install
yarn start   # or npm start

Testing

Open your browser at http://localhost:4000 and start sending queries.

Query:

query {
  whatsForFun
  whatsForDinner
}

The server returns the following response:

{
  "data": {
    "whatsForDinner": "Tonight we eat 🥗",
    "whatsForFun": "Fun 🎃"
  }
}

Playground

Screenshot

About

A simple example of a graphql server.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors