Thursday, 22 August 2013

How do I select this field in mongodb

How do I select this field in mongodb

I know it is probably a simple solution but for some reason I am having
trouble calling it... I tried querying it then calling
user.connected_accounts.facebook but that does not work... I need to get
hte number out.
Here is the code:
"connected_accounts":[{"facebook":"5555555"}],
Here is my mongoose schema:
connected_accounts: {type: Array}

No comments:

Post a Comment