See client README and server README for more info.
fetch('http://localhost:8844/graphql', {
method: 'POST',
headers: {
"Content-Type": "application/x-www-form-urlencoded"
},
body: "query=query { viewer { films { title, id } } }"
}).then(
res => res.text()
).then(
text => console.log('data:', JSON.parse(text))
);