@gridql/payload-generator

3.8.4 • Public • Published

Payload Generator

Usage

const { builderFactory } = require("@gridql/payload-generator");

const schema = {
  type: "object",
  properties: {
    _id: {
      type: "string",
      format: "id",
    },
  },
  required: ["_id"],
  additionalProperties: false,
};

const bf = builderFactory(schema);

let testThing = bf();

let manyThings = bf(1000);

Check out the tests for other ideas.

Dependents (2)

Package Sidebar

Install

npm i @gridql/payload-generator

Weekly Downloads

0

Version

3.8.4

License

MIT

Unpacked Size

4.62 kB

Total Files

8

Last publish

Collaborators

  • tsmarsh