Rename function

This commit is contained in:
Jonathan Kim 2020-07-11 13:41:47 +01:00
parent 2ec251c290
commit be289d2855
2 changed files with 5 additions and 5 deletions

View File

@ -320,7 +320,9 @@ class TypeMap(dict):
field_type, field_type,
args=args, args=args,
resolve=field.get_resolver( resolve=field.get_resolver(
self.get_resolver(graphene_type, name, field.default_value) self.get_query_resolver(
graphene_type, name, field.default_value
)
), ),
subscribe=field.get_resolver( subscribe=field.get_resolver(
self.get_subscribe_resolver( self.get_subscribe_resolver(
@ -353,7 +355,7 @@ class TypeMap(dict):
return wrapped_resolver return wrapped_resolver
def get_resolver(self, graphene_type, name, default_value): def get_query_resolver(self, graphene_type, name, default_value):
if not issubclass(graphene_type, ObjectType): if not issubclass(graphene_type, ObjectType):
return return

View File

@ -1,9 +1,7 @@
from datetime import datetime
from pytest import mark from pytest import mark
from graphene import ObjectType, Int, String, Schema, DateTime from graphene import ObjectType, Int, String, Schema
from graphene.types.objecttype import ObjectTypeOptions from graphene.types.objecttype import ObjectTypeOptions
from graphene.utils.get_unbound_function import get_unbound_function
MYPY = False MYPY = False