const { getAuth } = require('./auth_manager'); async function main() { const td = await getAuth(); const res = await fetch('https://graphql.ghaymah.systems/v1/graphql', { method: 'POST', headers: { 'Authorization': 'Bearer ' + td.token, 'Content-Type': 'application/json' }, body: JSON.stringify({ query: `query { ghaymah_cloud_resources_by_pk(id: "acd244b6-43b6-4de1-8b1c-4f27cea90ea1") { id chart_name chart_version status message values } }` }) }); console.log(JSON.stringify(await res.json(), null, 2)); } main().catch(console.error);