MODULO Full Stack Web Development: The Ultimate Master SagaTHEORY
Keep a list and detail query distinct
Using a local test collection, insert two reading-list entries. Write one query for the full list sorted by title and another for a single entry by its ID. Try an ID with valid syntax that does not exist.
Check your work
The list should contain two entries in title order. A single-item query should return one document or null. Handle null before reading title so a missing entry produces a useful response.
