Skip to content
Advertisement

Pushing props into Supabase filtering – VUE3, Supabase

Trying to push through a prop to the .like filtering option in supabase function. Due to .like needing % in value, im not sure how to push the prop through. Please see below.

JavaScript

I would like to have props.model?.name instead of ‘%Yeezy%’. I have tried adding in the prop like stated but does not work. Much appreciated.

Advertisement

Answer

Have you tried concatenating the string?

JavaScript
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement