Querying WooCommerce orders is not working as expected

Browser: Chrome 132.0.6834.84
OS: Windows

Hi bricks team,

Using the Query Editor and the following query, I want to display the list of orders to display in My Account > Orders, but it doesn’t work at all. I remember it working before, but I don’t know why it doesn’t work now. I’ve tried this in Beta 1.12.

return [
‘post_type’ => ‘shop_order’,
‘post_status’ => array_keys(wc_get_order_statuses()),
‘posts_per_page’ => -1,
];

Am I doing something wrong?

Thanks