The error is thrown on new PrismaSelect(info).value and I managed to track it down to filterBy method, specifically this check: Object.keys(subModelFilter.select).length > 0. The issue is that field.kind returns object, whereas subModelFilter is of type Boolean
It seems there's an issue in filterBy() while processing the custom scalar. Graphql schema:
schema.prisma:
scalar resolver:
The error is thrown on
new PrismaSelect(info).value
and I managed to track it down tofilterBy
method, specifically this check:Object.keys(subModelFilter.select).length > 0
. The issue is thatfield.kind
returnsobject
, whereassubModelFilter
is of type Boolean