fields {Array<Field>}

The fields property can be used to specify a list of dataset fields to include in the result set. Using this property in a query configuration creates an unaggregated query.

A field object contains the following properties:

  • name {string}: Name of the field in the data source
  • limit {number}: Max number of rows in the result set (Valid only in the first field object in the array)
Note: When using the 'fields' property, omit the 'aggregateFilters', 'groups', and 'metrics' properties


const fields = [
  { name: 'payment_type', limit: 10 },
  { name: 'product' },
  { name: 'city' },

Try this example on CodeSandbox

Updated Jan 10, 2019