Fix format typos in graphql guide

This commit is contained in:
Javi Martín
2023-02-28 15:33:37 +01:00
parent 3662172d21
commit 74c5589cb1

View File

@@ -261,7 +261,7 @@ To retrieve the next page, you have to pass as a parameter the cursor received i
### Accessing several resources in a single request ### Accessing several resources in a single request
This query requests information about several models in a single request: `Proposal`,` User`, `Geozone` and` Comment`: This query requests information about several models in a single request: `Proposal`, `User`, `Geozone` and `Comment`:
``` ```
{ {
@@ -338,7 +338,7 @@ The response will look something like this:
### Example of too complex query ### Example of too complex query
The main risk factor is when multiple collections of resources are requested in the same query. The maximum number of collections that can appear in the same query is limited to 2. The following query requests information from the `users`,` debates` and `proposals` collections, so it will be rejected: The main risk factor is when multiple collections of resources are requested in the same query. The maximum number of collections that can appear in the same query is limited to 2. The following query requests information from the `users`, `debates` and `proposals` collections, so it will be rejected:
``` ```
{ {
@@ -383,7 +383,7 @@ The response will look something like this:
} }
``` ```
However, it is possible to request information belonging to more than two models in a single query, as long as you do not try to access the entire collection. For example, the following query that accesses the `User`,` Proposal` and `Geozone` models is valid: However, it is possible to request information belonging to more than two models in a single query, as long as you do not try to access the entire collection. For example, the following query that accesses the `User`, `Proposal` and `Geozone` models is valid:
``` ```
{ {