Skip to content

Commit

Permalink
Store resolver on field instance
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick91 committed Dec 26, 2024
1 parent e78f8c6 commit f3f6889
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions strawberry/schema/schema_converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,8 @@ def from_field(
# self.from_resolver needs to be called before accessing field.type because
# in there a field extension might want to change the type during its apply
resolver = self.from_resolver(field)
# TODO: think more about this
field._resolver = resolver # type: ignore
field_type = cast(
"GraphQLOutputType",
self.from_maybe_optional(
Expand Down

0 comments on commit f3f6889

Please sign in to comment.