how to do the opposite of inArray()?
i'm getting all collections (music single, ep, or album) that contain a certain tag. currently i'm doing this: where
chosenTagCollectionIDs
is a list of collection ids that have the tag i'm looking for. collectionsTable.tags
is a list of tags. can i somehow use inArray()
to check if the collectionsTable.tags
array contains tag
?5 Replies
and this is what
getCollections()
looks like:How are you storing tags?
just an array
I'm not a postgres user, but from what I can tell you'd need the
ANY
function, which drizzle doesn't have built-in. So the condition would be something like
that works, thanks 🙂