mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-22 09:36:44 +03:00
Add doc block to method
This commit is contained in:
parent
d69a488d37
commit
53b2f5e057
|
@ -476,6 +476,11 @@ class Schema:
|
||||||
return await graphql(self.graphql_schema, *args, **kwargs)
|
return await graphql(self.graphql_schema, *args, **kwargs)
|
||||||
|
|
||||||
async def EXPERIMENTAL_subscribe(self, query, *args, **kwargs):
|
async def EXPERIMENTAL_subscribe(self, query, *args, **kwargs):
|
||||||
|
"""Create a GraphQL subscription.
|
||||||
|
|
||||||
|
NOTE: this is an EXPERIMENTAL API and as such does not follow the normal semver release guarantees. Use it at
|
||||||
|
your own risk.
|
||||||
|
"""
|
||||||
document = parse(query)
|
document = parse(query)
|
||||||
kwargs = normalize_execute_kwargs(kwargs)
|
kwargs = normalize_execute_kwargs(kwargs)
|
||||||
return await subscribe(self.graphql_schema, document, *args, **kwargs)
|
return await subscribe(self.graphql_schema, document, *args, **kwargs)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user