So i have a working query that returns a featureSet that is made into a layer.
I want to add some stats about the query and add them to a feature.
i added a simple statistic query that works but when its time to create a new layer after the query is returned i get :
name: "feature-layer:missing-property", message: "geometryType not set and couldn't be inferred from the provided features"
this error is automaticly fixed when i cross the query.outStatistics line from my query.
do i really need to create two identical querys for stats and for visual display?
heres a pen with the query.outStatistics crossed out: https://codepen.io/segev-salman/pen/OJPJGxX