`where` within `where`? confused about complex query
how can i select
posts
that contain a userItems
with assetId = {X}
?5 Replies
the closest i've got is
this retrieves every post, but only the
userItems
where its assetId = 1
which is not what i need
also i need to sort by posts.createdAt
maybe one of these can help?Views (WIP) – DrizzleORM
Drizzle ORM | %s
i need to return
posts
based on other queries too
so something "rigid" like these seems good
maybe something like
kinda just making stuff up at this point