JSPM

lazy-gql-request

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q10424F
  • License MIT

Package Exports

  • lazy-gql-request
  • lazy-gql-request/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (lazy-gql-request) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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',
}])