Lets say a document is :
{ a: 1, b: 1, c: 2, .... z: 2 }
How can I count the number of keys in such document?
Thank you
There's no built-in command for that. Fetch this document and count the keys yourself.