Array.$findById()

Method $findById(id)
Description Use $findById() to retrieve a specific document from a list of documents by its $id.


Example

Let's say that we have a list of customers. We than have an invoice which is associated with a customer by its ID. We often have to retrieve the specific customer so that we can display the customer details.