Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Looking at the documentation
resourcePromise object containing the **content item**.
and contentResource.getChildren(parentId) returns
resourcePromise object containing an array of **content item**s.
So my expectation is that (other than being wrapped in an array) I should get the same data back from both. However...
the GetById results contains a "tabs" property which in turn contain a "properties" array
whereas the individual items in the getChildren results contain a "properties" array directly.
There are other differences but its on the properties I'm trying to access - Is one of these returning a IPublishedContent equivalent, and the other returning IContent?
Can I get the equivalent result to the one I see with getChildren when armed with a nodeid?(Without going up and down the tree!)
Is my best course to report this as a documentation bug/issue on Github?
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted