I have a PostGIS table with millions of points (x,y,z,time).
I have to develop a web app with the ArcGIS JavaScript API, to make some statistics like this application: https://ycabon.github.io/presentations/2019-devsummit/Working-With-Your-Data-Using-the-ArcGIS-API-for-JavaScript-Feature-Layer/demos/4_client-side_statistics/index.html
I cannot find any sharing method in ArcGIS Pro, except to copy as layerPackage. And, as a layerPackage in Portal fort AE, I can not find any option to create a FeatureLayer to use in my app.
Which is the best method to publish PostGIS data in Portal for ArcGIS Enterprise for using with ArcGIS JavaScript API 4?