iago
02/18/2019, 8:51 PMconst subscription = await db
.updateSubscription({
data: {
playlists: {
update: {
sections:{
create:{
name,
},
},
},
},
},
where: { id: subscription_id },
})
.$fragment(graphql`
{
id
playlists {
sections {
id
name
# updatedAt
}
}
}
`)
)
const { id } = find(subscription.playlists.sections, ({ name: name_ })=> name_ === name)
// orderBy(subscription.playlists.sections, 'updatedAt', 'desc')[0]
Harshit
02/19/2019, 5:07 AM