Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const site = async () => {
const query = `
query Site($slug: String!){
organisation {
site(slug: $slug) {
name
slug
}
}
}
`
const slug = 'calibre'
try {
const result = await GraphQL.request({ query, slug })
console.log(result)
} catch (e) {
console.error(e)
}
}