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

RFC Add inline descriptions support #101

Open
SerafimArts opened this issue Jan 16, 2018 · 0 comments
Open

RFC Add inline descriptions support #101

SerafimArts opened this issue Jan 16, 2018 · 0 comments

Comments

@SerafimArts
Copy link
Member

Changes in the GraphQL SDL standard assume support for single-line comments for arguments and the enum values:

"""
A simple GraphQL schema which is well described.
"""
type Query {
  """
  Translates a string from a given language into a different language.
  """
  translate(
    "The original language that `text` is provided in."
    fromLanguage: Language

    "The translated language to be returned."
    toLanguage: Language

    "The text to be translated."
    text: String
  ): String
}

"""
The set of languages supported by `translate`.
"""
enum Language {
  "English"
  EN

  "Russian"
  RU

  "Chinese"
  CH
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant