title: How to query a Dynamo DB having a GSI with only hashKeys using DynamoDBMapper
body: <p>I am very new to <strong>Dynamo DB</strong> and may be this is very trivial question, but i went through the documents of Dynamo DB and stack overflow questions but i couldnt find a single link which tells how to query DDB for <strong>GSI</strong> which has only hash key and there are no range key specified for the same.</p>
  
  <p>I get the exception Illegal query expression: No hash key condition is found in the query. </p>