-
Notifications
You must be signed in to change notification settings - Fork 468
nodeByUri does not return ContentType for Posts Page. #1687
Copy link
Copy link
Closed
Labels
object type: postRelating to the Post Object TypesRelating to the Post Object Typestype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior
Milestone
Description
Performing a query on nodeByUri for the page_for_posts uri returns the Page type instead of the ContentType type.
With v1.1.0 the below query works correctly:
query {
nodeByUri(uri: "/blog") {
... on Page {
id
isPostsPage
title
}
... on ContentType {
id
name
contentNodes(first: 3) {
nodes {
id
}
}
}
}
}
It will return 3 posts under contentNodes. When run on v1.1.2 it returns the Page (isPostsPage: true, title: "Blog") instead of the contentNodes.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
object type: postRelating to the Post Object TypesRelating to the Post Object Typestype: bugIssue that causes incorrect or unexpected behaviorIssue that causes incorrect or unexpected behavior
Type
Projects
Status
✅ Done