Skip to content

Commit a7a6675

Browse files
committed
fix block example
1 parent d0c5d6d commit a7a6675

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

guides/schema/code_reuse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ end
182182
QueryType = GraphQL::ObjectType.define do
183183
field :findPost, PostType do
184184
argument :id, !types.Int
185-
resolve Auth.can_read(:post) do |obj, args, ctx|
185+
resolve(Auth.can_read(:post) do |obj, args, ctx|
186186
Post.find(args[:id])
187-
end
187+
end)
188188
end
189189
end
190190
```

0 commit comments

Comments
 (0)