title: Mongoose - 2dsphere index - howto
body: <p>I am working with Node.js.How can I configure a 2dsphere index for a Polygon on the schema of Mongoose?</p>
  
  <p>I have tried with it: </p>
  
  <pre><code>  location_2dsphere: {
        type: { type: String }
        , coordinates: []
    },
  </code></pre>
  
  <p>But it doesn't work!</p>