smallrye / smallrye-graphql

Implementation for MicroProfile GraphQL
Apache License 2.0
155 stars 89 forks source link

Wrongly inferred query name when typesafe client API extends an interface #2097

Closed jmartisk closed 3 months ago

jmartisk commented 3 months ago

When a typesafe client API extends from an interface like this:

public interface InventoryClient {
    List<Car> allCars();
}

@GraphQLClientApi(configKey = "inventory")
public interface GraphQLInventoryClient extends InventoryClient {
    @Query("cars")
    List<Car> allCars();
}

Then the client thinks the query is named allCars instead of cars. The @Query annotation is ignored.