It wont affect it because it is a modification of an inline array not changing grafana
Proceed with caution. This is bastardizing grafana api data result. Better off providing what external user needs via some other means.
app.post('/gapi', async (req, res) => {
const token = "";
const headers = { "Content-Type": "application/json",
'Authorization': 'Bearer ' + token};
const body = '{"queries": [{"datasourceId": 7,
"rawSql": "SELECT * FROM chrono;"
,"format": "table"}]}'
try {
hostsurl = 'http://localhost:3903/api/ds/query/';
const response = await fetch(hostsurl, {
method: "post",
headers: headers,
body: body,
});
const data = await response.json();
//bad. try other means like .map
delete data.results.A.frames[0].schema.meta;
return res.json(data);
} catch (e) {
throw e.response ? e.response.body.message : e;
}
})