Miezan
10/15/2017, 6:06 PMmutation CreateLinkMutation($description: String!, $url: String!, $postedBy: User) {
    createLink(
      description: $description,
      url: $url,
      postedBy: $postedBy,
    ) {
      id
      createdAt
      url
      description
      postedBy
    }
  }nilan
10/15/2017, 6:50 PMMiezan
10/15/2017, 7:01 PMtype Link implements Node {
  id: ID! @isUnique
  ...
  postedBy: User @relation(name: "UsersLinks")
}
the i dont know how to add the current user to the mutation - i was adding the user id  but that obviously gave me an error since it is a string… I’m trying to understand how to properly write my mutationnilan
10/15/2017, 7:05 PMMiezan
10/15/2017, 7:10 PM