Hello welcome : )
node.js driver and mongo-shell are different.
They have similar syntax but not excactly the same.
When you use the driver see the driver api
https://mongodb.github.io/node-mongodb-native/3.6/api/Collection.html#find
Here you can see the projection as option.