can I have a generic mutation that deletes a resource?
something like
_await_ ctx.prisma?.[resourceType].delete()…
r
Ryan
08/23/2021, 6:00 AM
@glekner đź‘‹
Yeah you’ll have to manage this without TypeScript as TS wouldn’t know the exact type in this case. Have a look at this request and the comments to have a better idea 🙂