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

Common DSL and file type for schema definitions? #149

Closed
andye2004 opened this issue Mar 12, 2016 · 2 comments
Closed

Common DSL and file type for schema definitions? #149

andye2004 opened this issue Mar 12, 2016 · 2 comments

Comments

@andye2004
Copy link

This is more a comment / to provoke discussion rather than an issue but I just wasn't sure where to put it.

I've been looking at GraphQL for a little over a week now and having spent some time looking at how schemas are declared/defined in different implementations it strikes me that some are much easier to read and understand than others. For instance the Javascript examples provided by FB are very easy to read and understand but the corresponding Java implementation is much more difficult to read.

Now I have nothing against GraphQL-Java, in fact I plan on using this for a demonstration project within my organisation, but the complexity of reading the schema generation code led me to think that in an ideal world there would be a single way to define a schema and and it's constituent components. A GraphQL DSL, if you like, and have a common file type to save these into.

For arguments sake, the DSL could simply be Javascript but saved with an alternative file extension. I would be interest to know other peoples thoughts on this?

@andye2004 andye2004 changed the title Common file type for schemas? Common DSL and file type for schema definitions? Mar 12, 2016
@leebyron
Copy link
Collaborator

We're working on an IDL DSL language for types now - you can find the work in progress at #90

@andye2004
Copy link
Author

Nice one, thanks Lee. Clearly missed that while searching.

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

No branches or pull requests

2 participants