diff --git a/website/pages/docs/going-to-production.mdx b/website/pages/docs/going-to-production.mdx index 2af1e0b7ab..aa57121dc0 100644 --- a/website/pages/docs/going-to-production.mdx +++ b/website/pages/docs/going-to-production.mdx @@ -149,7 +149,7 @@ const postRepository = { // Resolver for the `Post.body` field: function Post_body(source, args, context, info) { // return the post body only if the user is the post's author - return postRepository.getBody({ user: context.user, post: obj }) + return postRepository.getBody({ user: context.user, post: source }) } ```