Skip to content

graffle-js/graffle

Repository files navigation

Note

Looking for graphql-request? It's been renamed to Graffle and the old version is available on the graphql-request branch.

Graffle Logo

Graffle

Simple, type-safe GraphQL client for JavaScript.

DocumentationGetting StartedExamples

Installation

npm install graffle@next graphql

Quick Start

import { Graffle } from 'graffle'

const graffle = Graffle
  .create()
  .transport({ url: 'https://countries.trevorblades.com/graphql' })

const data = await graffle.gql`
  {
    countries {
      name
      emoji
    }
  }
`.send()

Learn More

Visit graffle.js.org for full documentation, guides, and examples.

License

MIT