```const test = await this.prisma.proyecto.findMan...
# orm-help
e
Copy code
const test = await this.prisma.proyecto.findMany({
      include: {
        owner: {
          where: {
            nombre: {
              contains: 'asd'
            }
          }
        }
      }
    });
Copy code
Unknown arg `where` in include.owner.where for type Owner. Did you mean `select`? Available args:
type owner {
}
d
Hey Eric, this query is looking a bit weird to me, could you try something like this and tell me if it works as expected? await prisma.proyecto.findMany({ where: { owner: { nomber: { contains: "asd" } } }, include: { owner: true }, });
I said that your query looks weird because you are trying to filter your results based on the relation, but doing so inside of the include. I'm not quite sure that works, but I believe if you have the relation properly setup in your models you can first filter what you want, then include the relation field in you query
e
That was it! Thank you!