Skip to content

Commit 980044b

Browse files
author
German Smirnov
authored
docs: remove excess bracket in readme example
1 parent f819521 commit 980044b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ UserTC.addResolver({
477477
type: UserTC,
478478
args: { userId: 'MongoID!', valueToPush: 'String' },
479479
resolve: async ({ source, args, context, info }) => {
480-
const user = await User.update({ _id: args.userId }, { $push: { arrayToPushTo: args.valueToPush } } })
480+
const user = await User.update({ _id: args.userId }, { $push: { arrayToPushTo: args.valueToPush } })
481481
if (!user) return null // or gracefully return an error etc...
482482
return User.findOne({ _id: args.userId }) // return the record
483483
}

0 commit comments

Comments
 (0)