Skip to content

Commit f7a1388

Browse files
committed
update the list of extras for the Interpreter
1 parent 7124873 commit f7a1388

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

guides/fields/introduction.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,10 +188,12 @@ Inside a field method, you can access some low-level objects from the GraphQL-Ru
188188

189189
A few `extras` are available:
190190

191-
- `irep_node`
192191
- `ast_node`
193-
- `parent`, the parent field context
192+
- `graphql_name` (the field's name)
193+
- `owner` (the type that this field belongs to)
194+
- `lookahead` (see {% internal_link "Lookahead", "/queries/lookahead" %})
194195
- `execution_errors`, whose `#add(err_or_msg)` method should be used for adding errors
196+
- Custom extras, see below
195197

196198
To inject them into your field method, first, add the `extras:` option to the field definition:
197199

0 commit comments

Comments
 (0)