how to display the popup for a graphic when is added to the map, eliminating the need to click on it.
Tried but didn't display.
view.graphics.add(thegraphic);
view.popup.open({
features: [thegraphic], // array of graphics
fetchFeatures: true //fetch the content of this feature and display it
});