Skip to content

Commit

Permalink
docs: fix wrong @uppercase example (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-888 authored and gregberge committed Feb 28, 2019
1 parent 5192414 commit 04ae74f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ const schema = buildSchema(`

// Resolver
addDirectiveResolveFunctionsToSchema(schema, {
async dateFormat(resolve, source, args) {
async upperCase(resolve) {
const value = await resolve()
return format(new Date(value), args.format)
return value.toUpperCase()
},
})
```
Expand Down

0 comments on commit 04ae74f

Please sign in to comment.