Hey i’m new here, and i have a problem with Querying data using an array of promises building each promise with the .execute()
method like this:
let result = ['company_name','customer_name'].map(item => (
cf.provider('Elasticsearch')
.source('my_source')
.groupby(cf.Attribute(`${item}`).limit(100).sort('desc'))
.textfilter(`${item}:*a*`)
.limit(100)
.execute()
));
Promise.all(result);
When I try to build the promises array I get this error: