A simple example of a graphql server.
This directory contains a simple "Random Eat and Fun" example based on graphql-yoga.
Clone the repository:
git clone https://github.com/ffcabbar/graphql-yoga-example.gitInstall dependencies and run the app:
yarn install # or npm install
yarn start # or npm startOpen 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 🎃"
}
}