title: MongoDB Compass GROUP BY value
body: <p>Lets say that i have the following objects in my mongodb-compass-database:</p>
  <pre><code>{
     _id: ObjectID(&quot;randomString&quot;),
     Name: &quot;Test1&quot;,
     OtherAttribute: 187
  },
  {
     _id: ObjectID(&quot;otherRandomString&quot;),
     Name: &quot;Test2&quot;,
     OtherAttribute: 1337
  },
  {
     _id: ObjectID(&quot;otherRandomString2&quot;),
     Name: &quot;Test1&quot;,
     OtherAttribute: 23
  }
  </code></pre>
  <p>How can I return the &quot;Name&quot;-value if it exist more than one time?
  In the example I want to receive &quot;Test1&quot; or the whole object, doesnt matter.</p>
  <p>I just need to see if there are any duplicates.</p>
  <p>I need to use the MongoDB Compass Find-Input:
  <a href="https://i.stack.imgur.com/53jSL.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/53jSL.png" alt="enter image description here" /></a></p>
  <p>Is this possible?</p>