Is there any way to do a nested create mutation wi...
# prisma-whats-new
p
Is there any way to do a nested create mutation without referencing the id of the connected field?
i.e., instead of
Copy code
mutation updateAuthorAndConnectContactDetails {
  updateAuthor(
    id: "ciz7573ffx1w70112hwj04hqv"
    description: "I write posts"
    contactDetailsId: "ciz7573ffx1w80112cjwjduxn"
  ) {
    id
    contactDetails {
      email
    }
  }
}
i could do something like this:
Copy code
mutation updateAuthorAndConnectContactDetails {
  updateAuthor(
    id: "ciz7573ffx1w70112hwj04hqv"
    description: "I write posts"
    contactDetails: {email: "nilan@graph.cool"}
  ) {
    id
    contactDetails {
      email
    }
  }
}
a
👍 1