Skip to content

296 ast printer support#388

Merged
bbakerman merged 5 commits into
graphql-java:masterfrom
bbakerman:296-ast-printer-support
Apr 30, 2017
Merged

296 ast printer support#388
bbakerman merged 5 commits into
graphql-java:masterfrom
bbakerman:296-ast-printer-support

Conversation

@bbakerman

Copy link
Copy Markdown
Member

I looked to fix #296 and realised that the project needs a AST printer in order to be able to fix it.

So thats what I added. Its based of the reference implementation.

@bbakerman bbakerman requested a review from andimarek April 26, 2017 13:53
…upport

# Conflicts:
#	src/main/java/graphql/introspection/Introspection.java
@andimarek andimarek added this to the 3.0.0 milestone Apr 30, 2017

@andimarek andimarek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Great work again ... just one suggestion :-)

* | Number | Int / Float |
* | Mixed | Enum Value |
*/
public static Value astFromValue(Object _value, GraphQLType type) {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This method seems a bit messy overall: would you mind extracting methods for the specific types? (GraphQLNonNull, GraphQLList ...)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

sure - funny thing is its a direct port of the JS implementation. So its "reference mess" ;)

I agree its messy

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

done

@bbakerman bbakerman merged commit a911955 into graphql-java:master Apr 30, 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.

Introspection on default value for input object is not following GraphQL spec

2 participants