diff --git a/packages/core/src/NodeExecuteFunctions.ts b/packages/core/src/NodeExecuteFunctions.ts index 189a2a7dac..2ce225badf 100644 --- a/packages/core/src/NodeExecuteFunctions.ts +++ b/packages/core/src/NodeExecuteFunctions.ts @@ -251,12 +251,23 @@ async function parseRequestObject(requestObject: IDataObject) { axiosConfig.params = requestObject.qs as IDataObject; } - if (requestObject.useQuerystring === true) { + if ( + requestObject.useQuerystring === true || + // @ts-ignore + requestObject.qsStringifyOptions?.arrayFormat === 'repeat' + ) { axiosConfig.paramsSerializer = (params) => { return stringify(params, { arrayFormat: 'repeat' }); }; } + // @ts-ignore + if (requestObject.qsStringifyOptions?.arrayFormat === 'brackets') { + axiosConfig.paramsSerializer = (params) => { + return stringify(params, { arrayFormat: 'brackets' }); + }; + } + if (requestObject.auth !== undefined) { // Check support for sendImmediately if ((requestObject.auth as IDataObject).bearer !== undefined) {