Though a simple question, I am not able to achieve it yet. I want to have an spfx web part triggers a CAML Query from a Specific view. So that later if I add or remove columns, I should not be changing the code. So basically I don't want to hard code any field names, just dynamically pull all the items if a filter condition is met and bind it to a data table.
Didn't find any way to filter by a specific View for example: All Items.