I have document with fields:
a
, b
, c
, d
Currently if I iterate over the collection with such documents, I get the full dictionary as output. Is there a way to get output in a key value pair with value of b as key and rest of the information as value, for example:
Suppose, there is a document: {'a':1,'b':2,'c':3,'d':4}
then output should be:
{2:{'a':1,'c':3,'d':4}}