MongoDB: Find documents that have name array size greater than one

1150445 pts.
Tags:
Big Data
MongoDB
We have a MongoDB collection that have documents in this format:
{
  "_id" : ObjectId("4e8ae86d08101908e1000001"),
  "name" : ["Some Name"],
  "zipcode" : ["2223"]
}
{
  "_id" : ObjectId("4e8ae86d08101908e1000002"),
  "name" : ["Another ", "Name"],
  "zipcode" : ["2224"]
}
{
  "_id" : ObjectId("4e8ae86d08101908e1000003"),
  "name" : ["Yet", " Another ", "Name"],
  "zipcode" : ["2225"]
}
So would there be a way select all of the documents that have a name array size greater than 1? We can get documents that match the array size. Is there a way to do this? Thanks!
0

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: