04-09-2023 05:27 PM
What is the correct expression from the below used to filter the records that have the Status field set to Delete Sample Payload : [{ “data”: [ { “Name”: “Harsha”, “Id”: “1234”, “City”: “NY”, “Status”: “Delete” }, { “Name”: “Chaithanya”, “Id”: “1235”, “City”: “NY”, “Status”: “Active” } ] }]
• $data.filter($data.Status!=‘Delete’)
• $data.filter(x=>x[$Status]!=‘Delete’)’
• $data.filter(x=>x[data.Status]!=‘Delete’)
• $data.filter(x=>x[“Status”]!=‘Delete’)
04-10-2023 12:30 PM
$data.filter((x,y,z)=> x['Status'] != 'Delete')