Skip to content

Commit d77333c

Browse files
committed
Update docs
1 parent f0ca079 commit d77333c

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

guides/execution/migration.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -242,12 +242,13 @@ Resolver classes are called.
242242

243243
### `raw_value` 🟡
244244

245-
Supported but requires a manual opt-in at schema level. Support for this will probably get better somehow in a future version.
245+
Supported, but the `raw_value` call must be made on `context`, for example:
246246

247247
```ruby
248-
class MyAppSchema < GraphQL::Schema
249-
uses_raw_value(true) # TODO This configuration will be improved in a future GraphQL-Ruby version
250-
use GraphQL::Execution::Next
248+
field :values, SomeObjectType, resolve_static: true
249+
250+
def self.values(context)
251+
context.raw_value(...)
251252
end
252253
```
253254

0 commit comments

Comments
 (0)