If I’m storing a static json file within weweb assets to use as a collection. What is the recommended method to call that file?
Inserting the url into a REST API call successfully returns the data.
You need to return something from your code.
You may want to use
Thanks for your help @dorilama
The code below is now working based on the response within the chrome console, but the weweb collection is still showing as empty. ??
First time trying to configure a collection like this so I’m very confused.
Any reason why you use both fetch and axios?
You are returning data from axios, this is your collection data, and logging the data from fetch.
From your screenshot I can see that the logged
data is an array, so probably for your collection
data.results is empty.
Have you tried to return only
Appreciate your responses @dorilama
The short answer is I’m just trying to work it out as a go so very limited knowledge about the code at the moment.