Skip to content

Conversation

@tdraier
Copy link
Collaborator

@tdraier tdraier commented Oct 9, 2017

No major changes, however we could have a v3 branch to continue support on graphql 3.0

GraphQLObjectType object = GraphQLAnnotations.object(OptionalTest.class);
GraphQLSchema schema = newSchema().query(object).build();

GraphQL graphQL = GraphQL.newGraphQL(schema).queryExecutionStrategy(new EnhancedExecutionStrategy()).build();
Copy link
Member

Choose a reason for hiding this comment

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

Why did you remove the queryExecutionStrategy?

Copy link

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, I restored an EnhancedExecutionStrategy for gql4.2, but did not put it back on tests where it was not needed - it's only used for relay mutations, so kept it only in RelayTest. I could restore it in these tests also, but it won't change much.

Copy link
Member

Choose a reason for hiding this comment

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

If its not necessary, no need

@yarinvak
Copy link
Member

Looks like there are not many changes, it looks good.
By the way, version 5.0 of GraphQL-Java was released about a week ago, we should work on that too.

Can you write a little more detailed description about the parts you changed here?

@tdraier
Copy link
Collaborator Author

tdraier commented Oct 16, 2017

Here's the list of changes :

  • Changed dependency to graphql-java-4.2
  • Updated EnhancedStrategyExecution to inherit from AsyncSerialExecutionStrategy, updated method signatures from ExecutionStrategy (now support Future)
  • Removed TypeInfoWorkaround (method is now public)
  • DataFetchingEnvironment constructor changed : added missing parameters when duplicating DataFetchingEnvironment
  • Cannot pass null DataFetcher in builder anymore, use fake value for building relay mutation
  • MethodDataFetcher : only arguments with values are now passed as parameters, use a map with names instead of assuming all arguments in sequence


public class EnhancedExecutionStrategy extends AsyncSerialExecutionStrategy {

private static final String CLIENT_MUTATION_ID = "clientMutationId";
Copy link
Contributor

Choose a reason for hiding this comment

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

why do you have this const?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Sorry I don't understand the question ? The const was not introduced in this PR but in f39d26f , and is still used in 3 places in the class.

@guy120494
Copy link
Contributor

Can you please resolve the conflicts?

@tdraier
Copy link
Collaborator Author

tdraier commented Oct 19, 2017

Is it ok to merge ?

@guy120494 guy120494 merged commit 503f71e into Enigmatis:master Oct 19, 2017
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.

5 participants