How to filter the WAN Device data only

Good Afternoon All,
When we call the store.fetch(“devices”, true) we are getting the devices object. In this object i want only WAN device object. How to get that only WAN device object. Please help me out.

Thanks in Advance.

Are you interfacing with the mongo db itself? The preferred way of getting data from GenieACS is via the NBI. This will allow you to do projections and return on the specific WAN object you desire.

Can you please tell how to do this? Because I searched in the documentation link. I didn’t find so…

Believe it or not, its in the link above.