CCBCodeMonkey
12/31/2018, 11:20 PMdb.updateUser({
where {
userid:'123'
}
data: {
posts: {
create: {
name:'my new post'
}
},
actions: {
create:{
actionType: 'posted',
post: {
// somehow connect the above created post?
}
}
}
}
});
Harshit
01/01/2019, 4:55 AMCCBCodeMonkey
01/01/2019, 9:32 PMCCBCodeMonkey
01/01/2019, 9:40 PMCCBCodeMonkey
01/01/2019, 9:40 PMawait
the response of the first one in my code, to get the id...CCBCodeMonkey
01/01/2019, 9:40 PMconnect:
the id of the new post to the actionCCBCodeMonkey
01/01/2019, 9:41 PMCCBCodeMonkey
01/01/2019, 10:22 PMCCBCodeMonkey
01/01/2019, 10:22 PMHarshit
01/02/2019, 3:15 AMHarshit
01/02/2019, 3:16 AM