mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-01-30 19:24:08 +03:00
Updated docs as graphql highlight is not yet supported
This commit is contained in:
parent
8b42a66eaa
commit
2f9c5ee707
|
@ -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
|
||||
|
|
|
@ -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") {
|
||||
|
|
|
@ -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"`
|
||||
|
|
Loading…
Reference in New Issue
Block a user