<@U8E9NHCAE> commented on <@U63BKR7S9>’s file <htt...
# prisma-whats-new
u
@illuday commented on @playra’s file

https://prisma.slack.com/files/U63BKR7S9/F8H0PC7FD/__________________________2017-12-19____23.52.48.png

: Nop, if you want to do this automatically you need to make a custom resolver.
Copy code
js
async writePost(parent, { title, text }, ctx, info) {
    const authorId = getUserId(ctx)
    return ctx.db.mutation.createPost(
      {
        data: {
          title,
          text,
          isPublished: true,
          author: {
            connect: { id: authorId },
          },
        },
      },
      info,
    )
  }
You should try the basic project from the @beta release.