graphql-js-tree
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -48,3 +48,19 @@ "use strict"; | ||
if (value.kind === 'ListValue') { | ||
return value.values.map(TypeResolver.resolveValue).reduce((a, b) => [...(a || []), ...(b || [])], []); | ||
return [ | ||
{ | ||
name: value.kind, | ||
directives: [], | ||
interfaces: [], | ||
args: value.values.map((f) => TypeResolver.resolveValue(f)).reduce((a, b) => [...a, ...b], []), | ||
data: { | ||
type: value.kind, | ||
}, | ||
type: { | ||
fieldType: { | ||
name: value.kind, | ||
type: Models_1.Options.name, | ||
}, | ||
}, | ||
}, | ||
]; | ||
} | ||
@@ -51,0 +67,0 @@ if (value.kind === 'ObjectValue') { |
@@ -18,3 +18,3 @@ "use strict"; | ||
if (f.data.type === Models_1.Value.ListValue) { | ||
returnedValue = `[${(f.args || []).map((a) => TemplateUtils_1.TemplateUtils.resolverForConnection(a))}]`; | ||
returnedValue = `[${(f.args || []).map((a) => TemplateUtils_1.TemplateUtils.resolverForConnection(a)).join(', ')}]`; | ||
} | ||
@@ -21,0 +21,0 @@ if (f.data.type === Models_1.Value.ObjectValue) { |
{ | ||
"name": "graphql-js-tree", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"private": false, | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
61463
1296