[WIP] GraphQL in Roc experiment. Far from spec-compliant.
- Run the server:
$ roc examples/posts.roc
- Point your prefered GraphQL playground app (such as Altair) to http://localhost:8000 and run a query!
query {
posts {
...PostBasics
}
postNumberOne: post(id: 1) {
...PostBasics
body
author {
firstName
lastName
}
}
}
fragment PostBasics on Post {
id
title
section
}