omar-dulaimi / prisma-trpc-generator

Prisma 2+ generator to emit fully implemented tRPC routers

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add option to specify transformer

omar-dulaimi opened this issue · comments

Problem

Right now, schemas with field types like BigInt won't immediately work unless a transformer is provided(like superjson) in the t-object initialization.

Suggested solution

Add a new field to specify default transformer.

Alternatives

User has to manually add the transformer after each generation.

Additional context

The transformer installation will be handled by the user himself.