diff --git a/docs/debug.rst b/docs/debug.rst index 854edfe..8ef2e86 100644 --- a/docs/debug.rst +++ b/docs/debug.rst @@ -45,7 +45,7 @@ Querying You can query it for outputing all the sql transactions that happened in the GraphQL request, like: -.. code:: graphql +.. code:: { # A example that will use the ORM for interact with the DB diff --git a/docs/filtering.rst b/docs/filtering.rst index 858b467..f2ea0e1 100644 --- a/docs/filtering.rst +++ b/docs/filtering.rst @@ -46,7 +46,7 @@ For example: You could then perform a query such as: -.. code:: graphql +.. code:: query { # Note that fields names become camelcased @@ -77,7 +77,7 @@ You can also make more complex lookup types available: Which you could query as follows: -.. code:: graphql +.. code:: query { # Note that fields names become camelcased @@ -115,7 +115,7 @@ For example: You can then control the ordering via the ``orderBy`` argument: -.. code:: graphql +.. code:: query { allAnimals(orderBy: "name") { diff --git a/docs/tutorial.rst b/docs/tutorial.rst index c274a19..4927bf7 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -262,7 +262,7 @@ from the command line. Go to `localhost:8000/graphiql `__ and type your first query! -.. code:: graphql +.. code:: query { allIngredients { @@ -278,7 +278,7 @@ type your first query! The above will return the names & IDs for all ingredients. But perhaps you want a specific ingredient: -.. code:: graphql +.. code:: query { # Graphene creates globally unique IDs for all objects. @@ -290,7 +290,7 @@ you want a specific ingredient: You can also get each ingredient for each category: -.. code:: graphql +.. code:: query { allCategories { @@ -311,7 +311,7 @@ You can also get each ingredient for each category: Or you can get only 'meat' ingredients containing the letter 'e': -.. code:: graphql +.. code:: query { # You can also use `category: "CATEGORY GLOBAL ID"`