Skip to content

Commit

Permalink
docs: fix an issue in an example of the README for graphql-api (#1056)
Browse files Browse the repository at this point in the history
authenticated was just working with the proposed changes
  • Loading branch information
JoJ123 authored Sep 16, 2020
1 parent dde3bdf commit 106bebf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/graphql-api/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ import { authenticated } from '@accounts/graphql-api';

export const resolver = {
Mutation: {
updateUserProfile: authenticated(AccountsServer, (rootValue, args, context) => {
updateUserProfile: authenticated((rootValue, args, context) => {
// Write your resolver here
// context.user - the current authenticated user!
}),
Expand Down

0 comments on commit 106bebf

Please sign in to comment.