async function executeAdminGql(query, variables) {
    const client = await getDgraphClientStub();
    return await client.callAPI("admin", {
        method: "POST",
        headers: { ...clientStubOptions.headers, "Content-Type": "application/json" },
        body: JSON.stringify({
            query,
            variables,
            operationName: null,
        }),
    });
}
// TODO: this code should be part of dgraph-js-http
this code should be part of dgraph-js-http
this code should be part of dgraph - js - http
async function executeAdminGql(query, variables) {
    const client = await getDgraphClientStub();
    return await client.callAPI("admin", {
        method: "POST",
        headers: { ...clientStubOptions.headers, "Content-Type": "application/json" },
        body: JSON.stringify({
            query,
            variables,
            operationName: null,
        }),
    });
}
async function executeAdminGql ( query , variables ) { const client = await getDgraphClientStub ( ) ; return await client . callAPI ( "admin" , { method : "POST" , headers : { ... clientStubOptions . headers , "Content-Type" : "application/json" } , body : JSON . stringify ( { query , variables , operationName : null , } ) , } ) ; }
TODO: this code should be part of dgraph-js-http
TODO : this code should be part of dgraph - js - http