Skip to content

Commit ed5d058

Browse files
committed
type/definition: export resolve_thunk function
Replicates graphql/graphql-js@95a85f7
1 parent 5550d0b commit ed5d058

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

docs/modules/type.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,6 +212,12 @@ Assertions
212212
Other
213213
-----
214214

215+
Thunk Handling
216+
^^^^^^^^^^^^^^
217+
218+
.. autofunction:: resolve_thunk
219+
220+
215221
Assertions
216222
^^^^^^^^^^
217223

src/graphql/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,8 @@
314314
# Un-modifiers
315315
get_nullable_type,
316316
get_named_type,
317+
# Thunk handling
318+
resolve_thunk,
317319
# Validate GraphQL schema.
318320
validate_schema,
319321
assert_valid_schema,
@@ -532,6 +534,7 @@
532534
"assert_named_type",
533535
"get_nullable_type",
534536
"get_named_type",
537+
"resolve_thunk",
535538
"validate_schema",
536539
"assert_valid_schema",
537540
"assert_name",

src/graphql/type/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@
6161
# Un-modifiers
6262
get_nullable_type,
6363
get_named_type,
64+
# Thunk handling
65+
resolve_thunk,
6466
# Definitions
6567
GraphQLScalarType,
6668
GraphQLObjectType,
@@ -213,6 +215,7 @@
213215
"assert_named_type",
214216
"get_nullable_type",
215217
"get_named_type",
218+
"resolve_thunk",
216219
"GraphQLScalarType",
217220
"GraphQLObjectType",
218221
"GraphQLInterfaceType",

src/graphql/type/definition.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
"assert_named_type",
105105
"get_nullable_type",
106106
"get_named_type",
107+
"resolve_thunk",
107108
"GraphQLAbstractType",
108109
"GraphQLArgument",
109110
"GraphQLArgumentKwargs",

0 commit comments

Comments
 (0)