How to use the calibre.GraphQL.request function in calibre

To help you get started, we’ve selected a few calibre examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github calibreapp / cli / examples / nodejs / graphql-request.js View on Github external
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)
  }
}

calibre

Calibre - Page speed performance testing with Google Lighthouse

MIT
Latest version published 2 months ago

Package Health Score

84 / 100
Full package analysis