Closed chirangaalwis closed 6 years ago
The issue you are facing is related to the serialization. I haven't had the time to check thoroughly but I think the issue is getReferences
does not match the naming convention for that field. Right now we are using jackson so you can either update the method names to match or use the jackson annotations to make it work as it stands
Requirement: I am attempting to capture the branches of a GitHub repository using the GitHub GraphQL API v4. The following is an example GraphQL query for capturing the branches of repository
wso2/docker-ei
.Current Status: For this purpose, we need to capture the Git References (
refs
). I have managed to build up the Java implementation for building the following query, to capture the Git References (en route to creating the final query).I have created three relevant Java classes (DTOs) Organization.java, Repository.java and Refs.java in order to build up the above query. The content of these classes are as follows:
Organization.java
Repository.java
Refs.java
The following code snippet depicts how I am executing the query:
Issue: But I am experiencing the following exception when executing the query (although
refs
is a valid field underrepository
):During debugging it was identified that the GraphQL query is accurately created and when executed using the GitHub GraphQL v4 explorer, the desired results can be obtained.
Any help or suggestions in relation with fixing this issue, are highly appreciated.