diff --git a/server/src/resolvers/Mutation.js b/server/src/resolvers/Mutation.js index 82a728e..ac115f8 100644 --- a/server/src/resolvers/Mutation.js +++ b/server/src/resolvers/Mutation.js @@ -6,6 +6,7 @@ function post(parent, args, context) { return context.prisma.createLink({ url: args.url, description: args.description, + postedBy: { connect: { id: userId } }, }) }