Skip to content

Magento 2.4.5 Graphql get product by category_id or uid

I’m confused. I’m querying categories and tried to add id field but it says it’s deprecated and suggested to use uid instead. But to get products we need category id, when I tried to use uid it doesn’t work.
enter image description here

enter image description here

Anyone any ideas?