RQB | using specific fields from a query against relations

JJeyprox5/25/2023
is there a way to create a select filter that matches specific fields from a relation?
say i findMany on posts and want to select all the posts where a relational one-to-many tags.name is inArray of a tagList array
ASAndrii Sherman5/25/2023
we have a small example in docs
ASAndrii Sherman5/25/2023
ASAndrii Sherman5/25/2023
not sure if it's something you are looking for
JJeyprox5/25/2023
i'm looking for something that might look like:
where: (posts) => inArray(posts.tags.name, tagList)
with:
with: {
  tags: {
    name: true,
  }
}
JJeyprox5/25/2023
however posts.tags has a type of Many<"tags>" that doesn't seem to allow for what i have in mind