jcward / haxe-graphql

Utilities for working with Haxe and GraphQL.
MIT License
23 stars 6 forks source link

Query result type on [String] becomes String (should be Array<String>) #23

Closed jcward closed 6 years ago

jcward commented 6 years ago

A query leaf which points to an [String] type, such as a tag list:

type Film {
  tags: [String]!
}

film_query {
  tags
}

Is generated as a simple String instead of Array<String>:

typedef OP_FilmQuery_Result = {
  ?film:Array<{ /* subset of Film */
    tags:String,
  }>,
}