Skip to content

How to alter getQueryName and getQueryNameMany? #83

@Carduelis

Description

@Carduelis

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:

  1. Make DataProvider customizable including getQueryName
  2. Update getQueryName according to recent updates

Also, I would suggest not using getQueryName and similar functions as class methods preferring simple functions.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions