| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 1a2a68c commit 8dbdd7e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -49,12 +49,12 @@ Get the result of a query: | |||
| 49 | 49 | ||
| 50 | 50 | .. code-block:: python | |
| 51 | 51 | ||
| 52 | - query = """{ | ||
| 53 | - query { | ||
| 54 | - currentUser { | ||
| 52 | + query = """ | ||
| 53 | + { | ||
| 54 | + currentUser { | ||
| 55 | 55 | name | |
| 56 | - } | ||
| 57 | 56 | } | |
| 57 | + } | ||
| 58 | 58 | """ | |
| 59 | 59 | ||
| 60 | 60 | result = gq.execute(query) | |
@@ -63,12 +63,12 @@ Get the result of a query using the async client: | |||
| 63 | 63 | ||
| 64 | 64 | .. code-block:: python | |
| 65 | 65 | ||
| 66 | - query = """{ | ||
| 67 | - query { | ||
| 68 | - currentUser { | ||
| 66 | + query = """ | ||
| 67 | + { | ||
| 68 | + currentUser { | ||
| 69 | 69 | name | |
| 70 | - } | ||
| 71 | 70 | } | |
| 71 | + } | ||
| 72 | 72 | """ | |
| 73 | 73 | ||
| 74 | 74 | result = await async_gq.execute(query) | |
| Back | FazBrowse Home | New Git URL |
0 commit comments