diff --git a/packages/router/src/controllers/GraphQl/GraphQlParser.ts b/packages/router/src/controllers/GraphQl/GraphQlParser.ts index 6e3f4c67a..eefdb2618 100644 --- a/packages/router/src/controllers/GraphQl/GraphQlParser.ts +++ b/packages/router/src/controllers/GraphQl/GraphQlParser.ts @@ -87,7 +87,7 @@ export class GraphQlParser extends ConduitParser processingObject.typeString += `${name}: ${isArray ? '[' : ''}` + this.getType(value) + - `${isArray ? `] ${isRequired ? '!' : ''}` : ''} `; + `${isArray ? `${isRequired ? '!' : ''}]` : ''} `; } protected getResultFromObject( @@ -105,9 +105,9 @@ export class GraphQlParser extends ConduitParser processingObject.typeString += fieldName + ': ' + - ` ${isArray ? '[' : ''}` + + `${isArray ? '[' : ''}` + nestedName + - `${isArray ? `] ${isRequired ? '!' : ''}` : ''} `; + `${isArray ? `${isRequired ? '!' : ''}]` : ''} `; processingObject.finalString += ' ' + this.extractTypesInternal(input, nestedName, value).finalString + ' '; } @@ -147,9 +147,9 @@ export class GraphQlParser extends ConduitParser processingObject.typeString += name + ': ' + - ` ${isArray ? '[' : ''}` + + `${isArray ? '[' : ''}` + (input ? 'ID' : value) + - ` ${isArray ? ']' : ''}` + + `${isArray ? ']' : ''}` + (isRequired ? '!' : '') + ' '; }