async function xxx(){ var results = await queryTask.executeRelationshipQuery(relationQuery) } It works for me see my question [It works for me see my question][1] [1]: https://gis.stackexchange.com/questions/487508/how-to-use-async-await-in-arcgis-javascript-api/487509#487509