How to return QueryTask results? I read the QueryTask returns a promise and this has to be resolved asynchronous way. I looked at other similar posting and one of them said QueryTask uses Deferred, but I am new to Dojo and I couldn't quite understand how Deferred works. I searched references online as much as I can, but unfortunately, I couldn't find one that displays examples similar to my case. I would appreciate any of your help.

Thank you,
Makiko