Hello! I am new to ArcGIS (and JavaScript) and would like to get some help with a problem. For a course at university, I'm building a web application with Vue that will query an AWS database for an IoT sensor's geographical position, and display the position on a map rendered with the Esri Loader. I have no problem rendering the map, adding graphics, or the feature layer. But the question I have now is: How can I update the graphics layer in real-time without re-rendering the base map tiles? The map, graphic layer, and feature layer are all separate objects so it makes sense that I should be able to just change the graphic layer and not have to fetch the tiles again (due to api costs).
The function goes as follows: