Skip to content

Commit 3393ae2

Browse files
authored
Fix/gql3 workaround (#14)
* disable schema validation (for now?) * changelog
1 parent a0d495b commit 3393ae2

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## Unreleased
88

9+
10+
## [0.6.1] - 2022-05-05
11+
### Changes
12+
- disabled schema validation (for now?)
13+
914
## [0.6.0] - 2022-05-04
1015
### Added
1116
- get_file method to ToshiFile class
1217
- tests for get_file method
1318
- update usage.md
1419

15-
1620
## [0.5.3] - 2022-05-02
1721
### Changes
1822
- using poetry in place of setup.py.

nshm_toshi_client/toshi_client_base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,9 @@ def run_query(self, query, variable_values=None):
7171
variable_values = variable_values or {}
7272

7373
gql_query = gql(query)
74-
if self._with_schema_validation:
75-
self._client.validate(gql_query) # might throw graphql.error.base.GraphQLError
74+
# TODO: started asserting after update to v3.0+ gql
75+
# if self._with_schema_validation:
76+
# self._client.validate(gql_query) # might throw graphql.error.base.GraphQLError
7677

7778
response = self._client.execute(gql_query, variable_values)
7879

0 commit comments

Comments
 (0)