(Solved) Filter where json array contains
I have a json array of strings, an invite list of user ids (clerk is managing my users which is why its not a relation), im trying to get all results from the events table where the current users id is in the invite list or the host, using planetscale (mysql) and i cannot figure out the correct syntax this is what i have so far and this is the schema for the events table
5 Replies
Hello, @! AlexNotTheLion! You can try this:
NAILED IT! thank you that was driving me nuts! i tried to use json contains but i wasnt stringifying the user id i passed to it !
solo is pro
Agreed!
Thank you, guys ❤️ :drizzle: