-
-
Notifications
You must be signed in to change notification settings - Fork 106
Open
Description
Usecase
Give users of graphile-worker the ability to pass in custom helpers. This could include custom database connection objects, metadata, application-specific helpers, etc...
For example:
My specific usecase is to pass a Slonik database connection object.
Implementation
Line 71 in 1d4fa8c
// TODO: add an API for giving workers more helpers |
It looks like if this TODO was done, this usecase could be satisified.
I'm not sure what the ultimate implementation would look like. Would there be a specific file like helpers.ts
that would be loaded and named exports would automatically be included?
Pitfalls/Things to watch out for
- Naming conflicts with existing helpers -- Is it okay to override?
jamesknelson
Metadata
Metadata
Assignees
Labels
No labels