Updated docs as graphql highlight is not yet supported

This commit is contained in:
Syrus Akbary 2016-09-26 01:13:31 -07:00
parent 8b42a66eaa
commit 2f9c5ee707
3 changed files with 8 additions and 8 deletions

View File

@ -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

View File

@ -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") {

View File

@ -262,7 +262,7 @@ from the command line.
Go to `localhost:8000/graphiql <http://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"`