@chris-derrell Thanks Chris. I have been trying to get the async functionality in my head. It feels like I read the documentation on promises twice a week and the more I use it, the more what they say makes sense.
This can certainly be closed now for the purpose of the original question, but if you have the time I have one more question:
Let’s say I take the above code and want everything that was supposed to execute in the .then() into a function to make it read easier. How do you pass the result values across to the function for both a completed promise and a rejected promise?
query.find()
query.then( successFunction, rejectFunction)
Documentation essentially gives me this, but what would it look like to be able to reference the values?