We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6517174 commit ee16367Copy full SHA for ee16367
EXAMPLE.md
@@ -156,9 +156,10 @@ Generated client class inherits from `AsyncBaseClient` and has async method for
156
```py
157
# graphql_client/client.py
158
159
-from typing import Optional
+from typing import Optional, Union
160
161
from .async_base_client import AsyncBaseClient
162
+from .base_model import UNSET, UnsetType
163
from .create_user import CreateUser
164
from .input_types import UserCreateInput
165
from .list_all_users import ListAllUsers
@@ -207,7 +208,7 @@ class Client(AsyncBaseClient):
207
208
return ListAllUsers.parse_obj(data)
209
210
async def list_users_by_country(
- self, country: Optional[str] = None
211
+ self, country: Union[Optional[str], UnsetType] = UNSET
212
) -> ListUsersByCountry:
213
query = gql(
214
"""
0 commit comments