Skip to content

Commit e06420e

Browse files
committed
Update README.md
1 parent 2e29b78 commit e06420e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ var schema = new GraphQLSchema({
7272
fields: {
7373
hello: {
7474
type: GraphQLString,
75-
resolve: () => 'world'
75+
resolve() {
76+
return 'world';
77+
}
7678
}
7779
}
7880
})

0 commit comments

Comments
 (0)