From 250144bf2764ac52126e9486224baf9b46e2b68e Mon Sep 17 00:00:00 2001 From: Robert burner Schadek Date: Fri, 7 Jun 2019 14:47:07 +0100 Subject: [PATCH] select form also works --- source/graphql/schema/typeconversions.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/graphql/schema/typeconversions.d b/source/graphql/schema/typeconversions.d index 62aba067..cd30a8a2 100644 --- a/source/graphql/schema/typeconversions.d +++ b/source/graphql/schema/typeconversions.d @@ -270,7 +270,7 @@ Json typeToJson(Type,Schema)() { // remove the array is present Json typeToJson1(Type,Schema,Orig)() { - static if(isArray!Type && !isSomeString!Type) { + static if(isArray!Type && !isSomeString!Type && !is(Type == enum)) { Json ret = emptyType(); ret["kind"] = "LIST"; ret[Constants.__typename] = "__Type";