Hi John,
the issue seemed to be with the double quotes when I formatted the code here. I corrected it and put it in Mongo Playground for you. It seems to work differently in Mongo Playground vs. the results I get running it inside an Atlas Function. Here I do see the _id field, but it’s not coming back in the Atlas Function.