0.3.0 • Published 3 years ago

@prequest/graphql v0.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

@prequest/graphql

A Syntax Sugar For Post Http Request Based On PreQuest.

Introduction

This is a part of PreQuest library which meaning you can't do anything with this single.

Install

npm install @prequest/graphql

Usage

import { PreQuest } from '@prequest/core'

const instance = PreQuest.create(adapter, {
  path: '/graphql',
  baseURL: 'http://localhost:3000',
})

const request = graphql(instance)

const query = `
  {
    me {
      name
    }
  }
`

const variables = { name: 'prequest' }

const opt = { path: '/graphql' }

request(query, variables, opt).then(res => console.log(res))
0.3.0

3 years ago

0.2.7

3 years ago

0.2.8

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.9

3 years ago

0.1.6

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago