GraphQL framework with Eloquent.
cd GraphPinatra
php -S 0.0.0.0:8000 -t public
open the url below with your browser:
http://0.0.0.0:8000/graphql.php?debug=1&query={article(id:1){id,title,read_count}}
or use ChromeiQL Chrome app with:
query {
article(id: 1) {
id
title
read_count
}
}
{
"data": {
"article": {
"id": 1,
"title": "ooxx",
"read_count": 0
}
}
}