how do LOWER(q.field("name") LIKE LOWER('%name%')
hi team! tried searching the docs but to no avail. any idea how can i do sth like
but ignoring the case? 😅
3 Replies
since this is just a
.filter
and not a .withIndex
, you can filter in plain ol' JS using a regex etcthanks, i tried entering the same name but it didnt work for me. am i misunderstanding sth? 🙏
Jamie is suggesting first collecting the query, then filter the array you get back. So
(await ctx.db. ... .collect()).filter(record => record.name.includes(args.name))