Skip to content

Conversation

albertstill
Copy link
Contributor

As the schema sais __InputValue can have a description. When I tried to set a description inline (Not using an INPUT_OBJECT) it did not work. It seems the code in definition.js was missing the description in a map functions return object.

I've have fixed this an added a Star Wars spec to go with it.

Also a side note: starWarsSchema.js was setting name values on the args but it serves no purpose because the name of the arg is set to the value of the key here. So I removed the two name declarations in the #human and #droid field args section in starWarsSchema.js.

@facebook-github-bot
Copy link

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have you on file. In order for us to review and merge your code, please sign up at https://code.facebook.com/cla - and if you have received this in error or have any questions, please drop us a line at cla@fb.com. Thanks!

@facebook-github-bot
Copy link

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Facebook open source project. Thanks!

leebyron added a commit that referenced this pull request Jul 14, 2015
Add missing `description` to field args
@leebyron leebyron merged commit 38f638c into graphql:master Jul 14, 2015
@leebyron
Copy link
Contributor

Thank you!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants