<@U59R4DB42> Yes but i want to call my mutaion fro...
# prisma-whats-new
p
@yus Yes but i want to call my mutaion from client side with all the updated post and comments data How can I call mutaion with all the updated commenst data with uopdated post data ?
🔴 1
n
@ppatidar Hey @ppatidar. Could you explain with an example what exactly you’re trying to do?
p
mutation { updateTraining( id: "cj3ebgx3li8vr0134flkwj190" instituteId: "cj32wbdg7mg3a01460zdkcxoi" dateTime: "017-05-17T140349.000Z" coachId: "cj32wk6prqm2v01929uytsrez" address: "Crik Train" numberOfSessions: 10 trainingTeams:[ { id: "cj3ebgx3mi8vt0134oqdxaqi6" teamId:"cj330pw3zrvkf0146ia97nnen" } ] ){ id } }
Here i have one table Traning and Traning has many TraningTeams
How can i update Traning with trainingTeams data?
@nilan can you tell me how we can do?
n
Hey @ppatidar, this is currently not possible but part of this feature request: https://github.com/graphcool/feature-requests/issues/127
right now you need to run
updateTrainingTeam
for each of the training teams
p
Ok Thanks