bullmq icon indicating copy to clipboard operation
bullmq copied to clipboard

Add support for custom serializers

Open manast opened this issue 6 years ago • 4 comments

https://github.com/OptimalBits/bull/issues/1411

manast avatar Aug 17 '19 08:08 manast

@manast any intention to get this developed?

We have a use case where we (ideally) need to pass Decimal.js types to downstream jobs in a flow.

godinja avatar May 31 '24 13:05 godinja

@godinja in your case, couldn't you just serialize the decimal.js types before adding the job data? In other words, it should be easy enough to build a custom serializer on top of the data object that supports your use case.

manast avatar Jun 03 '24 08:06 manast

+1 to custom serialisers-- or at add an option for superjson.

ryanolf avatar Jan 27 '25 11:01 ryanolf

+1

duckception avatar Aug 03 '25 15:08 duckception