Skip to content

Commit 8dbdd7e

Browse files
tonycwwuJohnVillalovos
authored andcommitted
docs(api-usage-graphql): fix the example graphql query string
1 parent 1a2a68c commit 8dbdd7e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

docs/api-usage-graphql.rst

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ Get the result of a query:
4949

5050
.. code-block:: python
5151
52-
query = """{
53-
query {
54-
currentUser {
52+
query = """
53+
{
54+
currentUser {
5555
name
56-
}
5756
}
57+
}
5858
"""
5959
6060
result = gq.execute(query)
@@ -63,12 +63,12 @@ Get the result of a query using the async client:
6363

6464
.. code-block:: python
6565
66-
query = """{
67-
query {
68-
currentUser {
66+
query = """
67+
{
68+
currentUser {
6969
name
70-
}
7170
}
71+
}
7272
"""
7373
7474
result = await async_gq.execute(query)

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy