QueryFeature not getting result set in StreamLayer using ArcGIS API for Javascript 4x
streamLayerView.watch("updating", function(val){
if(!val){ // wait for the layer view to finish updating
layerView.queryFeatures(query).then(function(results){
console.log(results.features); // prints the array of client-side graphics to the console
});
}
});
Any one suggest me.