I want to get the item count of a list, so my code looks like this:
var list = context.get_web().get_lists().getByTitle("tasks"); context.load(list);
Doesn't this way retrieve all properties for the list which is unneeded? How can I know the list of properties each object in SharePoint has in order to be able to do something like:
context.load(list,"ItemCount") for example?
Is there a reference for properties of each object in SharePoint or a way to know these attributes as from what I know using load() doesn't get ALL properties by default