Closed easingthemes closed 1 year ago
When Query arguments are passed as an Object, objToStringArgs function is transforming it into Query params https://github.com/adobe/aem-headless-client-js/blob/main/src/utils/GraphQLQueryBuilder.js#L10 This functions is not covering nested arrays, only first level array and nested objects.
objToStringArgs
Query arguments Object can have any structure
{ _expressions: [ {obj} ] }
Array provided here is not converted correctly.
When Query arguments are passed as an Object,
objToStringArgs
function is transforming it into Query params https://github.com/adobe/aem-headless-client-js/blob/main/src/utils/GraphQLQueryBuilder.js#L10 This functions is not covering nested arrays, only first level array and nested objects.Expected Behaviour
Query arguments Object can have any structure
Actual Behaviour
Reproduce Scenario (including but not limited to)
Steps to Reproduce
Platform and Version
Sample Code that illustrates the problem
Array provided here is not converted correctly.
Logs taken while reproducing problem