docs(api-usage-graphql): fix the example graphql query string · python-gitlab/python-gitlab@8dbdd7e

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)