File tree Expand file tree Collapse file tree 3 files changed +337
-155
lines changed Expand file tree Collapse file tree 3 files changed +337
-155
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ a query language for APIs created by Facebook.
13
13
[ ![ Code Style] ( https://img.shields.io/badge/code%20style-black-000000.svg )] ( https://github.com/ambv/black )
14
14
15
15
The current version 1.0.1 of GraphQL-core-next is up-to-date with GraphQL.js version
16
- 14.0.2. All parts of the API are covered by an extensive test suite of currently 1692
16
+ 14.0.2. All parts of the API are covered by an extensive test suite of currently 1701
17
17
unit tests.
18
18
19
19
Original file line number Diff line number Diff line change @@ -321,12 +321,16 @@ def build_directive(directive_introspection: Dict) -> GraphQLDirective:
321
321
# Get the root Query, Mutation, and Subscription types.
322
322
323
323
query_type_ref = schema_introspection .get ("queryType" )
324
- query_type = get_object_type ( query_type_ref ) if query_type_ref else None
324
+ query_type = None if query_type_ref is None else get_object_type ( query_type_ref )
325
325
mutation_type_ref = schema_introspection .get ("mutationType" )
326
- mutation_type = get_object_type (mutation_type_ref ) if mutation_type_ref else None
326
+ mutation_type = (
327
+ None if mutation_type_ref is None else get_object_type (mutation_type_ref )
328
+ )
327
329
subscription_type_ref = schema_introspection .get ("subscriptionType" )
328
330
subscription_type = (
329
- get_object_type (subscription_type_ref ) if subscription_type_ref else None
331
+ None
332
+ if subscription_type_ref is None
333
+ else get_object_type (subscription_type_ref )
330
334
)
331
335
332
336
# Get the directives supported by Introspection, assuming empty-set if directives
You can’t perform that action at this time.
0 commit comments