You cannot unwind anything that's not an array.
What is it that you want to get - do you have multiple fields with
different names where you have the string "attributes"?
It's only possible to use agg framework (or querying) if you know all
the possible values of "attributes".
If you don't then you need to use a different schema to do what you
are trying to do.
If you know all the possible "attributes" string values then you can
do some aggregations. If you give a more specific example, I should
be able to point you to a possible solution.
Asya
> --
> --
> You received this message because you are subscribed to the Google
> Groups "mongodb-user" group.
> To post to this group, send email to
mongod...@googlegroups.com
> To unsubscribe from this group, send email to
>
mongodb-user...@googlegroups.com
> See also the IRC channel --
freenode.net#mongodb
>
> ---
> You received this message because you are subscribed to the Google Groups
> "mongodb-user" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
mongodb-user...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.