Special characters in GraphQL schema -


is there way of enabling special characters in graphql schema (e.g., /, :, @ in field names)?

and if there isn't (which suspect case) have idea relatively easiest way modify node.js code (https://github.com/graphql/graphql-js) achieve such functionality?

i recommend against doing in this. graphql-js follows grammatical form stated in graphql specification. such change break away specification , schema no longer work graphql tools. parser throw invalid schema because these characters have special meaning in graphql.

graphql spec

punctuator:: 1 of ! $ ( ) ... : = @ [ ] { | }
graphql documents include punctuation in order describe structure. graphql data description language , not programming language, therefore graphql lacks punctuation used describe mathematical expressions.

http://facebook.github.io/graphql/#sec-punctuators

name :: /[_a-za-z][_0-9a-za-z]*/
graphql query documents full of named things: operations, fields, arguments, directives, fragments, , variables. names must follow same grammatical form. names in graphql case‐sensitive. name, name, , name refer different names. underscores significant, means other_name , othername 2 different names. names in graphql limited ascii subset of possible characters support interoperation many other systems possible.

http://facebook.github.io/graphql/#sec-names


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -