When trying to filter using the insights endpoint
graphEndPoint: "https://graph.microsoft.com/v1.0/me/insights/used?$filter=ResourceVisualization/containerDisplayName eq '"+ srchStr + "'"
An insight representing documents used by a specific user. The insights returns the most relevant documents that a user viewed or modified
You can't filter using the containerDisplayName property.
Please add this functionality