Hi, the return type of this function doesn't consider the case where the data doesn't exist. If the entry is deleted from the database or simply there is not an entry with the provided ID, it the function should return null or undefined.
Instead, it throws an error if the entry is not there. So I had to make a try-catch block to return null if that's the case. There is not a findFirst function.