Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 527 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 527 Bytes

lazy-gql-request

Support package to make request from lazy-gql

Dependency is graphql-request

import { request } from 'lazy-gql-request'
import { buildInsert, setDataSchema } from 'lazy-gql'

const dataSchema = {
  user: {
    id: { },
    name: { },
    email: { },
  },
}

setDataSchema(dataSchema)

return await request(process.env.URL)(buildInsert('users'), [{
  name: 'random name',
  email: 'random@email',
}])