<@U5MLM81NG> worked for you?
# prisma-whats-new
e
@figo worked for you?
n
@eliezedeck @figo in this case nested mutations are used: https://www.graph.cool/docs/reference/simple-api/nested-create-mutations-vaet3eengo/
f
Hi @nilan thanks for the reply - I did look at it before but I don't think it's efficient either. The closest case I can find in this tutorial is the "updating-an-existing-author-and-connecting-it-to-multiple-new-posts". There's a caveat in this use case is that you have to update the existing author with all the posts, which can be a huge payload in real life.
what I'm looking for is more like: given an existing author, create a new post, and append it to the end of posts owned by this user, without the need to send all posts back to server
something more like createPost after done connectPostWithExistingUser
n
@figo you can do that:
createPost(title: "Hi" authorId: "some-id")
f
just tried and looks like working fine! thanks a lot
i dont think this specific use case is covered in the tutorial - will be great to add it
n
what tutorial do you mean?