title: Nestjs not returning the empty json object
body: <p>I have return from json data from the mongodb through mongoose,
  when i tried to return the empty object its not returning.
  when i hard coded the json, it returning.</p>
  
  <p><strong>CONTROLLER:</strong></p>
  
  <pre><code>@Post(':objectId')
    async mquery(
      @Param('objectId') objectId: string,
    ): Promise&lt;any&gt; {
      return this.queryService.fetchData(id);
    }
  </code></pre>
  
  <p><strong>SERVICE:</strong></p>
  
  <pre><code>async fetchData(objectId: string) {
  
      var recorddata: any = await this.recordModel
        .findById(new ObjectID(objectId))
        .exec();
  
      return recorddata;
    }
  </code></pre>
  
  <p>The data from the model(Db) will return the below json</p>
  
  <pre><code>{
          "_id": "5dc40e6acdaa29631894f55b",
  
  
          "data": {
              "coordinates": {
                  "type": "FeatureCollection",
                  "features": [
                      {
                          "id": "7fb14d4598312bb500ae73c9ff9d5ec2",
                          "type": "Feature",
                          "properties": {
                              "s": "s"
                          },
                          "geometry": {
                              "coordinates": [
                                  -100.57304953867006,
                                  35.51213840759657
                              ],
                              "type": "Point"
                          }
                      },
                      {
                          "id": "86a04624576d1eedd89f32a4d8d33823",
                          "type": "Feature",
                          "properties": {},      &lt;- its only not returning
                          "geometry": {
                              "coordinates": [
                                  [
                                      -112.4456250000001,
                                      49.484726455955666
                                  ],
                                  [
                                      -99.78937500000032,
                                      51.93292501260265
                                  ],
                                  [
                                      -104.35968750000049,
                                      46.18230835878998
                                  ],
                                  [
                                      -116.6643750000002,
                                      44.452022329796705
                                  ]
                              ],
                              "type": "LineString"
                          }
                      }
                  ]
              }
          },
          "createdAt": "2019-11-07T12:30:34.268Z",
          "updatedAt": "2019-11-07T14:12:42.598Z",
          "__v": null
      }
  </code></pre>
  
  <p>I am getting the below result,</p>
  
  <pre><code> {
              "_id": "5dc40e6acdaa29631894f55b",
  
  
              "data": {
                  "coordinates": {
                      "type": "FeatureCollection",
                      "features": [
                          {
                              "id": "7fb14d4598312bb500ae73c9ff9d5ec2",
                              "type": "Feature",
                              "properties": {
                                  "s": "s"
                              },
                              "geometry": {
                                  "coordinates": [
                                      -100.57304953867006,
                                      35.51213840759657
                                  ],
                                  "type": "Point"
                              }
                          },
                          {
                              "id": "86a04624576d1eedd89f32a4d8d33823",
                              "type": "Feature",
                        ******MISSING****
                              "geometry": {
                                  "coordinates": [
                                      [
                                          -112.4456250000001,
                                          49.484726455955666
                                      ],
                                      [
                                          -99.78937500000032,
                                          51.93292501260265
                                      ],
                                      [
                                          -104.35968750000049,
                                          46.18230835878998
                                      ],
                                      [
                                          -116.6643750000002,
                                          44.452022329796705
                                      ]
                                  ],
                                  "type": "LineString"
                              }
                          }
                      ]
                  }
              },
              "createdAt": "2019-11-07T12:30:34.268Z",
              "updatedAt": "2019-11-07T14:12:42.598Z",
              "__v": null
          }
  </code></pre>
  
  <p>If I tired the same in the separate solution with the hard coded json, it will return the empty object.
  But when fetching from MongoDB its not returning.</p>
  
  <p>If I try the below code, its returning, </p>
  
  <pre><code>return _.get(recorddata, 'data.coordinates.features[1]');
  </code></pre>
  
  <p>What is going wrong here, kindly help me solve this issue.</p>
  
  <p>Helpful answers would be much appreciated ! Thanks in advance !!</p>