Hi is there any way to handle serialization/deseri...
# orm-help
a
Hi is there any way to handle serialization/deserialization with Prisma? when sending/receiving a payload via a message-queue - prisma entities are being “serialized”, hence some of the types are being substituted with primitives (for example,
Decimal
type ->
string
) what would be a suggestion on how to work with Prisma types in such cases? (so we can’t use the same types on “workers” methods) I saw some
{X}OutputType
definitions, but not for the entities directly
o
Are usually use Chaisson.stringify in JavaScript when I have issues with the payload that it’s returning. And Jason. parse when I need to convert it back into an object
r
@Alexandr Bordun 👋 Currently serialisation is not supported directly in Prisma, but you can create a feature request here and add your use case so that we can look into this 🙂