When passing an async function, you will get the error
TypeError: transformer(...).map is not a function
which is correct becuse Promise.map is not a function.
Adding the parentheses will execute the async transformer,
and then apply .map to the array returned
When passing an async function, you will get the error
TypeError: transformer(...).map is not a function
which is correct becusePromise.map
is not a function. Adding the parentheses will execute the async transformer, and then apply.map
to the array returnedAddesses issue: https://github.com/algolia/gatsby-plugin-algolia/issues/73