i am doing a query with deepObject but some how it is beign parsed incorrectly.
My Query
/search?populate[path]=snipeId&populate[match][rank.value[lte]]=9
Which is:
{populate[path]: 'snipeId', populate[match][rank.value[lte]]: '9'}
Output Value: on backend is shown as :{ path: 'snipeId', match: { lte: '9' } }
It should be like this :
{ path: 'snipeId', match: { 'rank.value':{lte: '9'} } }
Any help is appreciated, thank
CodePudding user response:
Should be:
populate[path]=snipeId&populate[match][rank.value][lte]=9
instead of
populate[path]=snipeId&populate[match][rank.value[lte]]=9