mirror of
https://github.com/wassname/talk.git
synced 2026-07-01 06:35:03 +08:00
Fixed plugin examples
This commit is contained in:
+2
-2
@@ -149,7 +149,7 @@ This will merge with the existing resolvers in core and from previous plugins.
|
||||
{
|
||||
RootMutation: {
|
||||
createPerson: {
|
||||
post: async (obj, args, {plugins: {Slack}}, person) {
|
||||
post: async (obj, args, {plugins: {Slack}}, info, person) {
|
||||
if (!person) {
|
||||
return person;
|
||||
}
|
||||
@@ -248,7 +248,7 @@ module.exports = {
|
||||
hooks: {
|
||||
RootMutation: {
|
||||
createPerson: {
|
||||
post: async (obj, args, {plugins: {Slack}}, person) => {
|
||||
post: async (obj, args, {plugins: {Slack}}, info, person) => {
|
||||
if (!person) {
|
||||
return person;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user