Expected Behavior
- If we have a method findA and A is a hash key
or
- We have a method findAAndB and A is a hash kay and B is range-key
Query op should be executed.
Actual Behavior
Scan op has been executed.
Steps to Reproduce the Problem
Scenario 1.
- Define only hash-key, declare method findByA where A is a hash key;
Scenario 2:
- Define hash key and range key, declare method findAAndB where A is a hash key and B is a range key;
There is only a check if the used fields are GSI, but no checks if all the fields are hash/range keys.