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