

def enter_ObjectField(self, node):
    object_type = get_named_type(self.get_input_type())
    field_type = None
    if isinstance(object_type, GraphQLInputObjectType):
        input_field = object_type.get_fields().get(node.name.value)
        field_type = (input_field.type if input_field else None)
    self._input_type_stack.append(field_type)

dataset/ETHPy150Open graphql-python/graphql-core/graphql/core/utils/type_info.py TypeInfo.enter_ObjectField/original