You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any chance of support nested query filter? So I can filter nested objects e.g.
query list {
listParentObjects(where:{enabled:{equal: true}}) {
childElement(where:{counter:{gte: 2}) {
id
}
}
}
In this use case, I want all enabled ParentObjects and for them only their childElements with counter greater then 2.
Now with
query list {
listParentObjects(where:{enabled:{equal: true}}) {
childElement {
id
}
}
}
I get all childElements for enabled ParentObjects.
I know I can do:
query list {
listParentObjects(where:{enabled:{equal: true}, {childElement:{some:{counter:{gte: 2}}}) {
childElement {
id
}
}
}
But that will give me enabled ParentObjects with at least one childElement with such counter, but all these ParentObjects will still have listed all the childElements.
Some other prisma generators support this.
The text was updated successfully, but these errors were encountered:
Is there any chance of support nested query filter? So I can filter nested objects e.g.
In this use case, I want all enabled ParentObjects and for them only their childElements with counter greater then 2.
Now with
I get all childElements for enabled ParentObjects.
I know I can do:
But that will give me enabled ParentObjects with at least one childElement with such counter, but all these ParentObjects will still have listed all the childElements.
Some other prisma generators support this.
The text was updated successfully, but these errors were encountered: