I am using the MapImageLayer to load my layers into the map in ArcGIS API for JavaScript 4.9.
I have set up the IdentifyTask, and it works great except for one problem. I allow the end-user to search on a date range which sets a definition expression to only display those features. However, the identify popup includes those features that are being excluded using the definition expression. On API version 3.xyz I see a layerOptions parameter where I can pass the expression, but can't acomplish this with API 4.xyz.
How do I get an Identify popup for only those features that are visible because of the definition expression?