Ignore permissions get_list

Hi,

How to ignore permission on get_list on js client-side, since we cannot user frappe.get_all
frappe.db.get_list(‘Sales Invoice’, {
filters: {
name:["=",frm.doc.abc]
},
},{“ignore_permissions”:true}).then(result => {
if(result)console.log("testtttt = " + result[0].name);
})

THis doesn;t work

You can’t. Allowing get_all client side would be completely insecure.