Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

require field descriptions #3

Closed
wants to merge 1 commit into from
Closed

Conversation

rmosolgo
Copy link
Owner

@rmosolgo rmosolgo commented May 4, 2015

not crazy about the client API

class MyNode < GraphQL::Node 
  field.string(:title, "The title")
  field.custom_node("Custom node value")
end

@devknoll
Copy link
Contributor

devknoll commented May 4, 2015

Also probably need to consider descriptions for the node itself (and calls)... not sure what the idiomatic Ruby solution would be.

One crazy idea might be to parse something like TomDoc at schema load time:

# Class Description
class MyNode < GraphQL::Node
  # The title
  field.string(:title)
end

@rmosolgo rmosolgo closed this Jul 3, 2015
@rmosolgo rmosolgo deleted the require-field-descriptions branch July 3, 2015 02:09
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.

None yet

2 participants