References for files stored outside of Backendless should have the domain name in the URL. It means your query should work. Have you tried? Did it work?
I did try it, and it does work. What I am less sure about with Backendless, in general, is if I’m doing it the “right” or “smart” way.
I appreciate it when you, or any of the other team, comments on the best way to do something as sometimes it’s not how I would have done it (example - Combining objects from two list of objects).
we don’t have a built-in function to differentiate between files that are hosted in Backendless and files that are hosted from outside, so there will be only one “smart” and “correct” approach here - the way you wrote. However, if you add a third-party file that will have a different domain than the other third-party files, you will need to add this to the where-clause condition in order to exclude it from the results. Not very elegant in terms of code, but will work. Alternatively, you can create an additional column in the table of type Boolean that will identify where the file is located and fetch data based on the value of that column. But this is if you know for sure that a particular entry has a file that is hosted specifically in the Backendless or somewhere outside and it will not be changed dynamically.