Improvements, GrapQL experiments. Fixed Babel dependencies.

This commit is contained in:
2019-12-15 22:16:55 +01:00
parent 7ba716cd6f
commit 07a6c77ce2
9 changed files with 183 additions and 1898 deletions

View File

@@ -39,7 +39,7 @@ async function post(endpoint, data) {
throw new Error(errorMsg);
}
async function graphql(operationName, query, variables = null) {
async function graphql(query, variables = null) {
const res = await fetch('/graphql', {
method: 'POST',
mode: 'cors',
@@ -48,7 +48,6 @@ async function graphql(operationName, query, variables = null) {
},
credentials: 'same-origin',
body: JSON.stringify({
operationName,
query,
variables,
}),