FindFirst Config Optional `with`
Hi, I am trying to do something like an optional findFirst config here. i am expecting the resultType of
readTemplater
would be with relations of templaterResults
. but the type is only templaters
without relations.
However if i change the readCustomTemplater
parameter to specifically receive with
input, the result type of readTemplater
shows the correct type, which is templaters
with relations of templaterResults
but my goal here is to fully let the caller have the control of findFirst
config
0 Replies