Skip to content

Commit

Permalink
Update thirty-ducks-check.md
Browse files Browse the repository at this point in the history
  • Loading branch information
theodesp authored Jan 20, 2025
1 parent 92ec786 commit 98ec644
Showing 1 changed file with 22 additions and 17 deletions.
39 changes: 22 additions & 17 deletions .changeset/thirty-ducks-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,22 +2,19 @@
"@wpengine/wp-graphql-content-blocks": patch
---

Adds support for resolving and returning navigation items within the CoreNavigation block for WPGraphQL Content Blocks.
Adds support for resolving and returning navigation items within the CoreNavigation innerBlocks for WPGraphQL Content Blocks.

```graphql
{
posts {
nodes {
editorBlocks {
... on CoreNavigation {
renderedHtml
navigationItems {
type
name
innerBlocks {
type
name
... on CoreNavigationLink {
attributes {
url
}
}
}
attributes {
ref
Expand All @@ -36,23 +33,31 @@ Adds support for resolving and returning navigation items within the CoreNavigat
{
"editorBlocks": [
{
"renderedHtml": "<nav>...</nav>",
"navigationItems": [
"type": "CoreNavigation",
"name": "core/navigation",
"innerBlocks": [
{
"type": "CorePageList",
"name": "core/page-list"
},
{
"name": "core/navigation-link",
"attributes": {
"url": "http://example.com"
}
"type": "CoreNavigationLink",
"name": "core/navigation-link"
}
],
"attributes": {
"ref": 42
"ref": 31
}
}
},
]
},
{
"editorBlocks": [
{}
]
}
]
}
}
},
}
```

0 comments on commit 98ec644

Please sign in to comment.