Hi @MrHertal !
I realized in latest amplify it generates queries like: dataPointsByMetricID instead of listDatapointsByMetricId which is generated via getQueryName and getQueryNameMany functions.
Although, there is no way to alter those functions, and DataProvider is not exported nor its parts.
There are two options, which might be helpful:
- Make
DataProvider customizable including getQueryName
- Update
getQueryName according to recent updates
Also, I would suggest not using getQueryName and similar functions as class methods preferring simple functions.
Hi @MrHertal !
I realized in latest amplify it generates queries like:
dataPointsByMetricIDinstead oflistDatapointsByMetricIdwhich is generated viagetQueryNameandgetQueryNameManyfunctions.Although, there is no way to alter those functions, and
DataProvideris not exported nor its parts.There are two options, which might be helpful:
DataProvidercustomizable includinggetQueryNamegetQueryNameaccording to recent updatesAlso, I would suggest not using
getQueryNameand similar functions as class methods preferring simple functions.