forked from DebaucheryLibrarian/traxxx
Improvements, GrapQL experiments. Fixed Babel dependencies.
This commit is contained in:
@@ -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,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user