How to filter inner collections in mutations? #4420
Answered
by
PascalSenn
alexander161198
asked this question in
Q&A
Replies: 1 comment 6 replies
-
mutation
{
updateHotel(hotel: {name: "NewName"} where: {rooms: {some: {id: {gt:83} } } } )
{
countObjectsModified
operation
objectName
}
} |
Beta Was this translation helpful? Give feedback.
6 replies
Answer selected by
alexander161198
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello!
I have 2 objects:
Hotel
andRoom
:So,
Hotel
contains collections of Rooms. How can I use filter byRooms
withwhere
in update Hotel mutation?For example, I want to rename hotels, that have rooms, which
id
is greater than 83.I was trying:
But this doesn't seem to work. Please, help me.
Beta Was this translation helpful? Give feedback.
All reactions