curl -X POST https://beta.node.thegrid.id/graphql \-H "Content-Type: application/json" \-d '{"query": "query { profileInfos(limit: 10) { name descriptionShort } }"}'
import requestsquery = """query GetProfiles {profileInfos(limit: 10, where: {profileStatus: {slug: {_eq: "active"}}}) {namedescriptionShortprofileType { name slug }profileSector { name slug }foundingDateurls { url urlType { name } }}}"""response = requests.post('https://beta.node.thegrid.id/graphql',json={'query': query},headers={'Content-Type': 'application/json'})data = response.json()print(data)
const fetch = require('node-fetch');const query = `query GetProfiles {profileInfos(limit: 10, where: {profileStatus: {slug: {_eq: "active"}}}) {namedescriptionShortprofileType { name slug }profileSector { name slug }foundingDateurls { url urlType { name } }}}`;fetch('https://beta.node.thegrid.id/graphql', {method: 'POST',headers: { 'Content-Type': 'application/json' },body: JSON.stringify({ query })}).then(res => res.json()).then(data => console.log(data)).catch(err => console.error(err));