Skip to content

Return Type of complete_list_value #132

Closed
@cancan101

Description

@cancan101

Any reason that the return type of complete_list_value is AwaitableOrValue[Any] rather than AwaitableOrValue[List[Any]]:

def complete_list_value(
self,
return_type: GraphQLList[GraphQLOutputType],
field_nodes: List[FieldNode],
info: GraphQLResolveInfo,
path: Path,
result: Iterable[Any],
) -> AwaitableOrValue[Any]:

For comparison, execute_fields returns AwaitableOrValue[Dict[str, Any]]:

def execute_fields(
self,
parent_type: GraphQLObjectType,
source_value: Any,
path: Optional[Path],
fields: Dict[str, List[FieldNode]],
) -> AwaitableOrValue[Dict[str, Any]]:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions