Anthony,
Thanks for the reply. I’m new to Wix, and also to Javascript using Promises. I’d assumed that I had implemented what you had suggested by putting the data query inside an asynchronous function that used the Await function to synchronously call the data query. I know the data query works cos I’ve output the response to the console. I’d expect that inside my findRole function, the thread would suspend until the query is complete and return the value of the query - either a string or an error message - to results. But it seems to be returning a Promise Object instead anyway. Is this a bug or am I missing something.