title: graphql error Sub selection required for type object of field Query
body: <p>I am getting following error while invoking GraphQL Query in java application -</p>
  
  <blockquote>
    <p>"description": "Sub selection required for type Account of field
    accountQuery",
                "validationErrorType": "SubSelectionRequired",
                "queryPath": [
                    "accountQuery"
                ],</p>
  </blockquote>
  
  <p>Here is my schema - </p>
  
  <blockquote>
    <p>schema {   query: Query }</p>
    
    <p>type Query {   accountQuery(nbr: String): Account }</p>
    
    <p>type Account {   <br>nbr: String <br>  name: String ... <br>}</p>
  </blockquote>
  
  <p>I have Account POJO defined and i am calling a Service in the backend based on the nbr value passed which is working fine.<br>
  Here is the rest request i am sending - <br></p>
  
  <blockquote>
    <p>{   accountQuery(nbr: "123") }</p>
  </blockquote>
  
  <p>Is the error due to missing id field and if so how do i mark "nbr" field as id ?</p>