I'm making request to CosmosDB database via MongoDB adapter from HapiJS server. My request looks like so:
dbo
.collection("storage")
.find(query, function(
findErr,
result
) {
if (findErr) throw findErr;
(async function() {
output = result.toArray()
})();
});
And it works allright. But if I'm trying to add projection (from official docs) nothing changing at all. I'm adding projection like this:
.find(query, {data:false}, function( ...
What am I missing?