# Body object contents in "Elasticsearch Node.js Client" API return values

**URL:** <https://discuss.elastic.co/t/body-object-contents-in-elasticsearch-node-js-client-api-return-values/194286>\
**Category:** Elasticsearch\
**Created:** [August 7, 2019, 4:19pm UTC](https://discuss.elastic.co/t/body-object-contents-in-elasticsearch-node-js-client-api-return-values/194286 "2019-08-07T16:19:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![n2nelastic](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/n2nelastic/32/51656_2.png) [@n2nelastic](https://discuss.elastic.co/u/n2nelastic)\
**Post date:** [August 7, 2019, 4:19pm UTC](https://discuss.elastic.co/t/body-object-contents-in-elasticsearch-node-js-client-api-return-values/194286/1 "2019-08-07T16:19:33Z")

</div>

The documentation forElasticsearch Node.js Client says that "The returned value of every API call is formed as follows":

```auto
{
  body: object | boolean
  statusCode: number
  headers: object
  warnings: [string],
  meta: object
}

```

My question is **how to interpret the "body: object"** ; i.e., how to know what fields the body actually _contains_ and how to look at them.

I cannot find anything in the documentation on this.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 4, 2019, 4:19pm UTC](https://discuss.elastic.co/t/body-object-contents-in-elasticsearch-node-js-client-api-return-values/194286/2 "2019-09-04T16:19:34Z")

</div>

Closed on September 4, 2019, 4:19pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
