getRecords(restriction, config )

Returns records as an array of JavaScript objects.

Parameters:

  • restriction (object): records restriction
  • config (object): (optional) additional parameters for the WFR.


Example:

this.records = this.mainDataSource.getRecords(restriction);