worker icon indicating copy to clipboard operation
worker copied to clipboard

Documentation: detail how to pass a preset to `run()`

Open benjie opened this issue 10 months ago • 0 comments

import type {} from "graphile-config";
import { run } from "graphile-worker";
import { WorkerProPreset } from "@graphile-pro/worker";

const preset: GraphileConfig.Preset = {
  extends: [WorkerProPreset],
  worker: {
    /* Your worker config options here */
    connectionString: process.env.DATABASE_URL,
    maxPoolSize: 10,
    // ...
  },
};

const promise = run({ preset });

This needs detailing both on the library page and the worker pro page.

benjie avatar Apr 09 '24 09:04 benjie