Select Id, Tag from LFLGTags where Tag in (${tags.map((t) =>
Select Id, Tag from LFLGTags where Tag in (${tags.map((t) =>
'${t}'
).join(', ')})
).join(', ')})
)
But that fails if a tag has a single quote in it... I'd like to do something like a
prepare
prepare
statement, but I haven't been able to figure out how to do that in this case.
If there's a better way to do such a query I'd be glad to find it... the nice thing about it is it's a single query, rather than querying for each tag individually.