Skip to content

Commit 75a771d

Browse files
authored
Documentation small changes (#263)
1 parent 7e45815 commit 75a771d

File tree

4 files changed

+24
-15
lines changed

4 files changed

+24
-15
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The main features of GQL are:
4040
* Supports [sync or async usage](https://gql.readthedocs.io/en/latest/async/index.html), [allowing concurrent requests](https://gql.readthedocs.io/en/latest/advanced/async_advanced_usage.html#async-advanced-usage)
4141
* Supports [File uploads](https://gql.readthedocs.io/en/latest/usage/file_upload.html)
4242
* Supports [Custom scalars / Enums](https://gql.readthedocs.io/en/latest/usage/custom_scalars_and_enums.html)
43-
* [gql-cli script](https://gql.readthedocs.io/en/latest/gql-cli/intro.html) to execute GraphQL queries from the command line
43+
* [gql-cli script](https://gql.readthedocs.io/en/latest/gql-cli/intro.html) to execute GraphQL queries or download schemas from the command line
4444
* [DSL module](https://gql.readthedocs.io/en/latest/advanced/dsl_module.html) to compose GraphQL queries dynamically
4545

4646
## Installation

docs/transports/phoenix.rst

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
PhoenixChannelWebsocketsTransport
44
=================================
55

6-
The PhoenixChannelWebsocketsTransport is an **EXPERIMENTAL** async transport which allows you
6+
The PhoenixChannelWebsocketsTransport is an async transport which allows you
77
to execute queries and subscriptions against an `Absinthe`_ backend using the `Phoenix`_
88
framework `channels`_.
99

10+
Reference:
11+
:class:`gql.transport.phoenix_channel_websockets.PhoenixChannelWebsocketsTransport`
12+
1013
.. _Absinthe: http://absinthe-graphql.org
1114
.. _Phoenix: https://www.phoenixframework.org
1215
.. _channels: https://hexdocs.pm/phoenix/Phoenix.Channel.html#content

gql/client.py

+18-12
Original file line numberDiff line numberDiff line change
@@ -315,9 +315,10 @@ def _execute(
315315
:param variable_values: Dictionary of input parameters.
316316
:param operation_name: Name of the operation that shall be executed.
317317
:param serialize_variables: whether the variable values should be
318-
serialized. Used for custom scalars and/or enums. Default: False.
318+
serialized. Used for custom scalars and/or enums.
319+
By default use the serialize_variables argument of the client.
319320
:param parse_result: Whether gql will unserialize the result.
320-
By default use the parse_results attribute of the client.
321+
By default use the parse_results argument of the client.
321322
322323
The extra arguments are passed to the transport execute method."""
323324

@@ -378,9 +379,10 @@ def execute(
378379
:param variable_values: Dictionary of input parameters.
379380
:param operation_name: Name of the operation that shall be executed.
380381
:param serialize_variables: whether the variable values should be
381-
serialized. Used for custom scalars and/or enums. Default: False.
382+
serialized. Used for custom scalars and/or enums.
383+
By default use the serialize_variables argument of the client.
382384
:param parse_result: Whether gql will unserialize the result.
383-
By default use the parse_results attribute of the client.
385+
By default use the parse_results argument of the client.
384386
:param get_execution_result: return the full ExecutionResult instance instead of
385387
only the "data" field. Necessary if you want to get the "extensions" field.
386388
@@ -462,9 +464,10 @@ async def _subscribe(
462464
:param variable_values: Dictionary of input parameters.
463465
:param operation_name: Name of the operation that shall be executed.
464466
:param serialize_variables: whether the variable values should be
465-
serialized. Used for custom scalars and/or enums. Default: False.
467+
serialized. Used for custom scalars and/or enums.
468+
By default use the serialize_variables argument of the client.
466469
:param parse_result: Whether gql will unserialize the result.
467-
By default use the parse_results attribute of the client.
470+
By default use the parse_results argument of the client.
468471
469472
The extra arguments are passed to the transport subscribe method."""
470473

@@ -539,9 +542,10 @@ async def subscribe(
539542
:param variable_values: Dictionary of input parameters.
540543
:param operation_name: Name of the operation that shall be executed.
541544
:param serialize_variables: whether the variable values should be
542-
serialized. Used for custom scalars and/or enums. Default: False.
545+
serialized. Used for custom scalars and/or enums.
546+
By default use the serialize_variables argument of the client.
543547
:param parse_result: Whether gql will unserialize the result.
544-
By default use the parse_results attribute of the client.
548+
By default use the parse_results argument of the client.
545549
:param get_execution_result: yield the full ExecutionResult instance instead of
546550
only the "data" field. Necessary if you want to get the "extensions" field.
547551
@@ -598,9 +602,10 @@ async def _execute(
598602
:param variable_values: Dictionary of input parameters.
599603
:param operation_name: Name of the operation that shall be executed.
600604
:param serialize_variables: whether the variable values should be
601-
serialized. Used for custom scalars and/or enums. Default: False.
605+
serialized. Used for custom scalars and/or enums.
606+
By default use the serialize_variables argument of the client.
602607
:param parse_result: Whether gql will unserialize the result.
603-
By default use the parse_results attribute of the client.
608+
By default use the parse_results argument of the client.
604609
605610
The extra arguments are passed to the transport execute method."""
606611

@@ -665,9 +670,10 @@ async def execute(
665670
:param variable_values: Dictionary of input parameters.
666671
:param operation_name: Name of the operation that shall be executed.
667672
:param serialize_variables: whether the variable values should be
668-
serialized. Used for custom scalars and/or enums. Default: False.
673+
serialized. Used for custom scalars and/or enums.
674+
By default use the serialize_variables argument of the client.
669675
:param parse_result: Whether gql will unserialize the result.
670-
By default use the parse_results attribute of the client.
676+
By default use the parse_results argument of the client.
671677
:param get_execution_result: return the full ExecutionResult instance instead of
672678
only the "data" field. Necessary if you want to get the "extensions" field.
673679

gql/transport/phoenix_channel_websockets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def __init__(self, query_id: int) -> None:
2525

2626

2727
class PhoenixChannelWebsocketsTransport(WebsocketsTransport):
28-
"""The PhoenixChannelWebsocketsTransport is an **EXPERIMENTAL** async transport
28+
"""The PhoenixChannelWebsocketsTransport is an async transport
2929
which allows you to execute queries and subscriptions against an `Absinthe`_
3030
backend using the `Phoenix`_ framework `channels`_.
3131

0 commit comments

Comments
 (0)