File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ Querying
45
45
You can query it for outputing all the sql transactions that happened in
46
46
the GraphQL request, like:
47
47
48
- .. code :: graphql
48
+ .. code ::
49
49
50
50
{
51
51
# A example that will use the ORM for interact with the DB
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ For example:
46
46
47
47
You could then perform a query such as:
48
48
49
- .. code :: graphql
49
+ .. code ::
50
50
51
51
query {
52
52
# Note that fields names become camelcased
@@ -77,7 +77,7 @@ You can also make more complex lookup types available:
77
77
78
78
Which you could query as follows:
79
79
80
- .. code :: graphql
80
+ .. code ::
81
81
82
82
query {
83
83
# Note that fields names become camelcased
@@ -115,7 +115,7 @@ For example:
115
115
116
116
You can then control the ordering via the ``orderBy `` argument:
117
117
118
- .. code :: graphql
118
+ .. code ::
119
119
120
120
query {
121
121
allAnimals(orderBy: "name") {
Original file line number Diff line number Diff line change @@ -262,7 +262,7 @@ from the command line.
262
262
Go to `localhost:8000/graphiql <http://localhost:8000/graphiql >`__ and
263
263
type your first query!
264
264
265
- .. code :: graphql
265
+ .. code ::
266
266
267
267
query {
268
268
allIngredients {
@@ -278,7 +278,7 @@ type your first query!
278
278
The above will return the names & IDs for all ingredients. But perhaps
279
279
you want a specific ingredient:
280
280
281
- .. code :: graphql
281
+ .. code ::
282
282
283
283
query {
284
284
# Graphene creates globally unique IDs for all objects.
@@ -290,7 +290,7 @@ you want a specific ingredient:
290
290
291
291
You can also get each ingredient for each category:
292
292
293
- .. code :: graphql
293
+ .. code ::
294
294
295
295
query {
296
296
allCategories {
@@ -311,7 +311,7 @@ You can also get each ingredient for each category:
311
311
312
312
Or you can get only 'meat' ingredients containing the letter 'e':
313
313
314
- .. code :: graphql
314
+ .. code ::
315
315
316
316
query {
317
317
# You can also use `category: "CATEGORY GLOBAL ID"`
You can’t perform that action at this time.
0 commit comments