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
This discussion was converted from issue #189 on December 15, 2020 07:05.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello people,
I have types video and serie.
A serie can have multiple videos and a video can be in one serie.
for example:
`
video {
id: ID!
name: String!
order: Int
serie: ID!
}
serie {
id: ID!
name: String!
videos: [ID!]!
}
`
I have a table with videos where you can drag them in a order.
Now I want to mutate all the videos according the order.
Is there a way I can just use updateSerie mutation instead of updating all videos seperately with updateVideo.
Something like this?
mutation updateSerie( $id: ID! $videos: [??] ) { updateSerie( id: $id videos: $videos ) { id, etc } }
I now update all videos seperately with their new order. What's the best practise? Are there any examples for such a usecase?
Beta Was this translation helpful? Give feedback.
All reactions