Now that we've started integrating the new data APIs into the codebase, there are many, many places where we need to decide on the behavior to adopt if a query happens to return a promise that is still pending.
Every such instance has been tagged in the codebase with the following comment:
TODO(#5607): what should happen if the promise is still pending?
At the moment, we simply treat unresolved promises the same as missing data.