Closed bradchoate closed 2 years ago
Ah, I see #32 already addresses this issue.
Hi @bradchoate, just published ra-data-simple-prisma@1.1.0
please give it a go and see if it works for you. One thing, since in defaultHandler you cannot pass the Prisma.whateverModelArgs
interface as a generic, you won't have the same nice autocomplete of select
and include
as you would by using getOneHandler<Prisma...findUniqueArgs>
Yes, thank you so much!
I'd like to pass through the
include
object to identify relational properties to include, but there isn't agetOne
options key fordefaultHandler
.Also, the 'create' and 'update' method handlers should also support Prisma's
include
option, to allow propagating relational properties.