Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation: detail how to pass a preset to run() #453

Open
benjie opened this issue Apr 9, 2024 · 0 comments
Open

Documentation: detail how to pass a preset to run() #453

benjie opened this issue Apr 9, 2024 · 0 comments
Labels

Comments

@benjie
Copy link
Member

benjie commented Apr 9, 2024

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 benjie added good first issue Good for newcomers 🐛 bug labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant