%{
date: fragment("date_trunc(?,?) as date",
type(^params.date_trunc_type, DateTruncType),
l.inserted_at)
}
This worked! I tried type/2 before like this, but this didn’t work. Mb @LostKobrakai advice helped or i’ve used type/2 wrong.
@LostKobrakai, @joey_the_snake ty for help.






















