We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0ca079 commit d77333cCopy full SHA for d77333c
1 file changed
guides/execution/migration.md
@@ -242,12 +242,13 @@ Resolver classes are called.
242
243
### `raw_value` 🟡
244
245
-Supported but requires a manual opt-in at schema level. Support for this will probably get better somehow in a future version.
+Supported, but the `raw_value` call must be made on `context`, for example:
246
247
```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
+field :values, SomeObjectType, resolve_static: true
+
+def self.values(context)
251
+ context.raw_value(...)
252
end
253
```
254
0 commit comments