FlowQuery getAllNodes with specific NodeType

Hey guys,

I have a FlowQuery to get subsites of a category site. It works perfectly.
Now I would get an specific NodeType (Content Element) from this subsites.

My specific NodeType named Neos.Shop:Article

Can I do this with FlowQuery?
$workspaceName = "live"; $context = $this->contextFactory->create(array('workspaceName' => $workspaceName)); $node = $context->getNodeByIdentifier($category); $articles = (new FlowQuery(array($node)))->children('[instanceof TYPO3.Neos.NodeTypes:Page]')->context(array('workspaceName' => 'live'))->get(); $this->view->assign('articles', $articles);

(new FlowQuery([$node]))
    ->children('[instanceof TYPO3.Neos.NodeTypes:Page]')
    ->find('[instanceof Neos.Shop:Article]')->get();

No need to use the context operation, you are in the live context since the beginning. This query will get all Article bellow the selected Page deed in the tree. Take care this query can return tons of document :wink:

Thank you! It works!