Hi I am trying custom graphql call using dxa apis
i am calling this line
InputItemFilter inputItemFilter = new InputItemFilter();
inputItemFilter.setCustomMeta(customMetaCriteria);
InputSortParam inputSortParam = new InputSortParam();
inputSortParam.setSortBy(SortFieldType.LAST_PUBLISH_DATE);
ItemConnection itemConnection = getPcaClient().executeItemQuery(inputItemFilter,
inputSortParam, new Pagination(), "",
ContentIncludeMode.INCLUDE_DATA, false, null);
but i am getting error
"errorType": "ValidationError",
"extensions": null,
"message": "Variable 'inputSortParam' has coerced Null value for NonNull type 'SortOrderType!'",
"path": null,
"suppressed": [],
"localizedMessage": "Variable 'inputSortParam' has coerced Null value for NonNull type 'SortOrderType!'"
or is there any method where i can only pass filter and get the respected output.
Could someone please advise what i am missing here.