prisma1 icon indicating copy to clipboard operation
prisma1 copied to clipboard

how to add id in othe schema relation

Open nareshvarun opened this issue 8 years ago • 1 comments

mutation{ createUserDetails( firstName:"naveen" secondName:"ramesh" mobileNum:"95538719489" email:"[email protected]" password:"123456"

cities:[
  {
  id:"cjakni4db45on0130fk249eko"
  }
]){
id
firstName
secondName
mobileNum
email
password

citieses{
  id
}
}

}

nareshvarun avatar Dec 07 '17 14:12 nareshvarun

Hey @nareshvarun, I'm not quite sure what you mean with this. I believe your use case is covered in the improve nested mutation API: https://github.com/graphcool/framework/issues/1280. Would love to hear your feedback there! 🙌

marktani avatar Dec 08 '17 10:12 marktani