|
65 | 65 |
|
66 | 66 |
|
67 | 67 | __all__ = [
|
68 |
| - "assert_valid_execution_arguments", |
69 | 68 | "create_source_event_stream",
|
70 | 69 | "default_field_resolver",
|
71 | 70 | "default_type_resolver",
|
@@ -250,8 +249,8 @@ def build(
|
250 | 249 |
|
251 | 250 | For internal use only.
|
252 | 251 | """
|
253 |
| - # If arguments are missing or incorrect, throw an error. |
254 |
| - assert_valid_execution_arguments(schema) |
| 252 | + # If the schema used for execution is invalid, raise an error. |
| 253 | + assert_valid_schema(schema) |
255 | 254 |
|
256 | 255 | operation: Optional[OperationDefinitionNode] = None
|
257 | 256 | fragments: Dict[str, FragmentDefinitionNode] = {}
|
@@ -1112,20 +1111,6 @@ def execute_sync(
|
1112 | 1111 | return cast(ExecutionResult, result)
|
1113 | 1112 |
|
1114 | 1113 |
|
1115 |
| -def assert_valid_execution_arguments( |
1116 |
| - schema: GraphQLSchema, |
1117 |
| -) -> None: |
1118 |
| - """Check that the arguments are acceptable. |
1119 |
| -
|
1120 |
| - Essential assertions before executing to provide developer feedback for improper use |
1121 |
| - of the GraphQL library. |
1122 |
| -
|
1123 |
| - For internal use only. |
1124 |
| - """ |
1125 |
| - # If the schema used for execution is invalid, throw an error. |
1126 |
| - assert_valid_schema(schema) |
1127 |
| - |
1128 |
| - |
1129 | 1114 | def invalid_return_type_error(
|
1130 | 1115 | return_type: GraphQLObjectType, result: Any, field_nodes: List[FieldNode]
|
1131 | 1116 | ) -> GraphQLError:
|
@@ -1340,10 +1325,6 @@ def create_source_event_stream(
|
1340 | 1325 | separating these two steps. For more on this, see the "Supporting Subscriptions
|
1341 | 1326 | at Scale" information in the GraphQL spec.
|
1342 | 1327 | """
|
1343 |
| - # If arguments are missing or incorrectly typed, this is an internal developer |
1344 |
| - # mistake which should throw an early error. |
1345 |
| - assert_valid_execution_arguments(schema) |
1346 |
| - |
1347 | 1328 | if not execution_context_class:
|
1348 | 1329 | execution_context_class = ExecutionContext
|
1349 | 1330 |
|
|
0 commit comments