Chapter 1: Driver Setup Ticket: Projection

Hi, im trying to make the exercise and I get a error with the driver.
My code looks like this
image

I try the filter using mongodb compass my solution and works

I dont know what is wrong :frowning:

I suggest that you read the TODO right at the beginning of the try block. Somewhere it is written Do not put a limit in your own implementation, the limit here is only included to avoid sending …. You still have the limit(1) when defining the cursor.