graphql / graphql-js

A reference implementation of GraphQL for JavaScript
http://graphql.org/graphql-js/
MIT License
20.06k stars 2.02k forks source link

Suggest more languge agnostic schema definition #91

Closed serle closed 9 years ago

serle commented 9 years ago

It would be nice to define the schema definition in a language agnostic way e.g. xml so that the schema could be shifted between graphQL implementations. This could also one to use more mature implementations in the meantime.

schrockn-zz commented 9 years ago

@serle We are actively work on this. Indeed we actually have a working version of a type definition DSL. We haven't really shouted about it yet because we are still finalizing details and spec.

You can see the parser here https://github.com/graphql/graphql-js/blob/master/src/language/schema/parser.js and an example file here https://github.com/graphql/graphql-js/blob/master/src/language/schema/__tests__/schema-kitchen-sink.graphql