Skip to content

Commit

Permalink
Document the children field.
Browse files Browse the repository at this point in the history
  • Loading branch information
andris-sevcenko committed Aug 29, 2019
1 parent 63d464e commit a0aa539
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions docs/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -889,6 +889,9 @@ The entry's post date.
#### The `expiryDate` field
The expiry date of the entry.

#### The `children` field
The entry’s children, if the section is a structure.

### The `GlobalSetInterface` interface
This is the interface implemented by all global sets.

Expand Down Expand Up @@ -1129,6 +1132,9 @@ The ID of the group that contains the category.
#### The `groupHandle` field
The handle of the group that contains the category.
#### The `children` field
The category’s children.
### The `TagInterface` interface
This is the interface implemented by all tags.
Expand Down Expand Up @@ -1190,6 +1196,9 @@ A defined type exists for each specific interface implementation. For example, i
queryEntries (section: "news", limit: 2, orderBy: "dateCreated DESC"){
dateCreated @formatDateTime (format: "Y-m-d")
title
children {
title
}
... on news_article_Entry {
shortDescription
featuredImage {
Expand All @@ -1209,6 +1218,7 @@ A defined type exists for each specific interface implementation. For example, i
{
"dateCreated": "2019-08-21",
"title": "An important news item",
"children": [],
"shortDescription": "<p>This is how we roll these days.</p>",
"featuredImage": [
{
Expand All @@ -1219,6 +1229,14 @@ A defined type exists for each specific interface implementation. For example, i
{
"dateCreated": "2019-07-02",
"title": "Dolorem ea eveniet alias",
"children": [
{
"title": "Child entry"
},
{
"title": "This is also a child entry"
}
]
"shortDescription": "Et omnis explicabo iusto eum nobis. Consequatur debitis architecto est exercitationem vitae velit repellendus. Aut consequatur maiores error ducimus ea et. Rem ipsa asperiores eius quas et omnis. Veniam quasi qui repellendus dignissimos et necessitatibus. Aut a illo tempora.",
"featuredImage": []
}
Expand Down

0 comments on commit a0aa539

Please sign in to comment.