americanexpress / nodes

A GraphQL JVM Client - Java, Kotlin, Scala, etc.
Apache License 2.0
307 stars 70 forks source link

graphqlproperty annotation is being mixed and shuffled around with the java field in the request #19

Closed gillpritpals closed 6 years ago

gillpritpals commented 6 years ago

`@GraphQLProperty(name = "business") public class MerchantFinancingLoanSearchBusiness {

String legalBusinessName;

@GraphQLProperty(name = "federalTaxId")
String tin;

@GraphQLProperty(name = "businessName")
String DBA;`

gives you:

business { DBA : businessNametin : federalTaxIdlegalBusinessName }

Here is the request builder

GraphQLRequestEntity requestEntity = GraphQLRequestEntity.Builder().headers(uriHeaders) .request(MerchantFinancingLoanSearchLoanAccounts.class) .arguments((new Arguments("findLoanAccounts", new Argument("start", Integer.parseInt(loanAccountsSearchRequest.getOffset())), new Argument("end", Integer.parseInt(loanAccountsSearchRequest.getLimit())), new Argument("criteria", criteriaInput)))) .url(configData.getProperty("loanAccountssearch.url", "")).build();