Skip to content

Conversation

@PaveLiArcH
Copy link
Contributor

@PaveLiArcH PaveLiArcH commented Dec 3, 2017

Only first argument should be List (this fixes #93)

@PaveLiArcH PaveLiArcH changed the title Expect only first parameter as List (fixes #93) Expect only first parameter as List Dec 3, 2017
@PaveLiArcH PaveLiArcH changed the title Expect only first parameter as List Expect only first parameter as List in Batched Dec 3, 2017
@apottere
Copy link
Collaborator

Thanks for the PR - would you mind adding a test that ensures this won't break in the future?


if(realType is ParameterizedType && isListType(realType, potentialMatch)) {
return potentialMatch.copy(javaType = realType.actualTypeArguments.first(), batched = false)
if (potentialMatch.location.ordinal > 0) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is checking the enum ordinal, not the method parameter position.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed this to compare with enum

@PaveLiArcH
Copy link
Contributor Author

Added test to check batched method with parameters

@sp00m
Copy link
Contributor

sp00m commented Feb 19, 2018

Just faced the same issue this PR fixes, any rough ETA on Maven Central?

@Taumer
Copy link

Taumer commented Apr 23, 2018

Any updates?

@apottere apottere merged commit d7e74e8 into graphql-java-kickstart:master May 19, 2018
@sp00m
Copy link
Contributor

sp00m commented May 20, 2018

Thanks for merging @apottere!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Batched resolver with arguments

4 participants