Query
methodsExecutes the specified query over the data items. Makes an HTTP request if bound to a remote service.
This method is useful when you need to modify several parameters of the data request at the same time (e.g. filtering and sorting). If you execute filter() and then sort(), the DataSource will make two separate requests. With query(), it will make one request.
This method will remove the current sort, filter, group, aggregates descriptors and paging information, if such are not provided as arguments.
Returns:Promise
—A promise that will be resolved when the data has been loaded or rejected if an HTTP error occurs.