json-to-graphql-query

v2.3.0
This is a simple module that takes a JavaScript object and turns it into a GraphQL query to be sent to a GraphQL server.

build

eslint 'src/**/*.{ts,tsx,js,jsx}' && rm -rf lib/ && tsc

format

prettier --write 'src/**/*.{ts,tsx,js,jsx,json,css,md}'

test

mocha -r ts-node/register --recursive "./src/**/__tests__/*"

test-watch

mocha -r ts-node/register --recursive "./src/**/__tests__/*" --watch --watch-extensions ts,tsx

prepare

npm run build && npm run test
npm i json-to-graphql-query

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 9/15/2024

Downloads

Maintainers