Hey @jamesarosen! Good question - the answer depends on the kind of data you’re working with and your preference. I’m guessing you’ve made some progress since this post (sorry for the delay) - but both of these methods you’ve outlined should work. You can indeed call fetch
in a Transformer, like so:
fetch('https://jsonplaceholder.typicode.com/todos/1')
.then(response => response.json())
.then(json => console.log(json))
If you plan on using the other AJAX calls across your app, I’d separate them into multiple queries. If not, it’s probably going to be easier to chain them in a single query.