Please do not make us read, analyze and write about piece of code you already know is not correct.

Have you tried it? Please try before disregarding.

You could try to $project _id:0,userId:1timeSpent:1 after adding userId and timeSpent as the last fields of your index.