Consider an Invoice collection with the following documents:
{ "invoice_no" : "1001", "payable_amount" : 100, "paid_amount" : 50 }
{ "invoice_no" : "1002", "payable_amount" : 200, "paid_amount" : 200 }
{ "invoice_no" : "1003", "payable_amount" : 300, "paid_amount" : 150 }
{ "invoice_no" : "1004", "payable_amount" : 400, "paid_amount" : 400 }
Need those documents where payable_amount > paid_amount
Expected Result:
{ "invoice_no" : "1001", "payable_amount" : 100, "paid_amount" : 50 }
{ "invoice_no" : "1003", "payable_amount" : 300, "paid_amount" : 150 }