How to publish nested fields that arent arrays


#1

If I have a document format like this: {_id:"something", value:{number:1, double:2}}, then suppose I want to publish only the value.number field.

When I try this as my published cursor, no fields are published!

Docs.find({}, {fields:{'value.number':1}})

#2

Might be related?


#3

Sounds like it might be this. Which is the same issue as the link @rafael gave.


#4

Thanks guys. What a terrible issue. Such a hack. No warnings. Nothing. This should be fixed…