Skip to content

Commit f78daba

Browse files
committed
add passing options(Ex: timeout, verify_ssl, ...aiohttp parameters) to execute_async method
1 parent a3371e0 commit f78daba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python_graphql_client/graphql_client.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Module containing graphQL client."""
2+
23
import json
34
import logging
45
from typing import Any, Callable
@@ -60,6 +61,7 @@ async def execute_async(
6061
variables: dict = None,
6162
operation_name: str = None,
6263
headers: dict = {},
64+
**kwargs: Any,
6365
):
6466
"""Make asynchronous request to graphQL server."""
6567
request_body = self.__request_body(
@@ -71,6 +73,7 @@ async def execute_async(
7173
self.endpoint,
7274
json=request_body,
7375
headers={**self.headers, **headers},
76+
**{**self.options, **kwargs},
7477
) as response:
7578
return await response.json()
7679

0 commit comments

Comments
 (0)