Emi
02/12/2018, 12:09 AMtype Table {
id: ID! @unique
cards: [Card!]!
}
type Card {
id: ID! @unique
}
The idea is that the user can drag & drop the Card in the order they want.
For clarity, I ended up writing a post in the forum: https://www.graph.cool/forum/t/ordering-nodes-with-prisma/2523max
02/12/2018, 10:18 AMmax
02/12/2018, 10:18 AMEmi
02/12/2018, 11:20 AMhuv1k
02/12/2018, 11:48 AMposition
and then you can have cards(orderBy: position_DESC)
Emi
02/12/2018, 12:02 PMhuv1k
02/12/2018, 12:06 PMupdateCard(id, position)
?Emi
02/12/2018, 12:13 PM