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

GraphQL Schema #111

Open
jparise opened this issue Jan 24, 2018 · 2 comments
Open

GraphQL Schema #111

jparise opened this issue Jan 24, 2018 · 2 comments

Comments

@jparise
Copy link
Contributor

jparise commented Jan 24, 2018

I think we should supporting GraphQL’s schema representation in Plank. Four big reasons:

  1. GraphQL provides richer type support (enums, unions, interfaces).
  2. GraphQL supports documentation elements that could be included in the generated code.
  3. GraphQL directives provide a mechanism for marking fields as @deprecated, etc.
  4. It allows for an easy transition from static schema files to “live” introspected schema queries.
@rahul-malik
Copy link
Collaborator

This has been planned as the path forward for a while and will require developing a proposal detailing how we map our existing JSON Schema type system to GraphQL equivalents. For most types this will be a simple conversion but things like Int or String enums may require a bit more work.

@rahul-malik
Copy link
Collaborator

I'll start working on a draft after Java support has been merged

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

2 participants