diff --git a/setup.cfg b/setup.cfg index e90f5e9c2..80eb78ed7 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,5 +31,3 @@ filterwarnings= ignore: "@coroutine" decorator is deprecated.*:DeprecationWarning # https://github.com/graphql-python/graphene/issues/1055 ignore: Using or importing the ABCs from 'collections' instead of from 'collections\.abc' is deprecated.*:DeprecationWarning - ignore: The 'context' alias has been deprecated. Please use 'context_value' instead\.:DeprecationWarning - ignore: The 'variables' alias has been deprecated. Please use 'variable_values' instead\.:DeprecationWarning diff --git a/starlette/graphql.py b/starlette/graphql.py index e67be3f1b..90aa993d2 100644 --- a/starlette/graphql.py +++ b/starlette/graphql.py @@ -123,19 +123,19 @@ async def execute( # type: ignore if self.is_async: return await self.schema.execute( query, - variables=variables, + variable_values=variables, operation_name=operation_name, executor=self.executor, return_promise=True, - context=context, + context_value=context, ) else: return await run_in_threadpool( self.schema.execute, query, - variables=variables, + variable_values=variables, operation_name=operation_name, - context=context, + context_value=context, ) async def handle_graphiql(self, request: Request) -> Response: