noop(); pop(); map();

    graphql-ask
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.1-2 • Public • Published

    graphql-ask

    Minimalistic and isomorphic request sender for GraphQL.

    NPM Version

    Example

    const { ask } = require('graphql-ask')
     
    const url = 'https://api.github.com/graphql'
    const query = '{repository(owner:"avajs" name:"ava"){description url updatedAt}}'
     
    ask(url, query, {
        headers: {
            'Authorization': 'Bearer <your GitHub personal access token>'
        }
    })
        .then(console.log)
        .catch(console.error)

    Install

    npm i graphql-ask

    DownloadsWeekly Downloads

    0

    Version

    0.0.1-2

    License

    MIT

    Last publish

    Collaborators

    • alexisfontaine