When 'findBy' method is annotated with @EnableScan or on class level, and the method uses only hash key (and range key), the method still executes scan instead of query. There is only a check if the used fields are GSI, but no checks if all the fields are hash/range keys. #296
Expected Behavior
Query op should be executed.
Actual Behavior
Scan op has been executed.
Steps to Reproduce the Problem
Scenario 1.
There is only a check if the used fields are GSI, but no checks if all the fields are hash/range keys.