From 4a416d94776cfdb0f2d7c4db262248e33fa5ab69 Mon Sep 17 00:00:00 2001 From: Wyatt Johnson Date: Thu, 16 Mar 2017 12:31:25 -0600 Subject: [PATCH] Fixed bug in docs --- PLUGINS.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PLUGINS.md b/PLUGINS.md index 1f8569029..eeb033d5a 100644 --- a/PLUGINS.md +++ b/PLUGINS.md @@ -149,7 +149,7 @@ This will merge with the existing resolvers in core and from previous plugins. { RootMutation: { createPerson: { - post(obj, args, {plugins: {Slack}}, person) { + post: async (obj, args, {plugins: {Slack}}, person) { if (!person) { return person; } @@ -248,7 +248,7 @@ module.exports = { hooks: { RootMutation: { createPerson: { - post(obj, args, {plugins: {Slack}}, person) { + post: async (obj, args, {plugins: {Slack}}, person) { if (!person) { return person; }