Files
elasticsearch-js/docs
Tomas Della Vedova 68c4dd29fb feat: add support for querystring in options object (#779)
In very few cases, some API uses the same key for both url and query params, such as the bulk method.
The client is not designed to handle such cases since accepts both url and query keys in the same object, and the url parameter will always take precedence.
This pr fixes this edge case by adding a `querystring` key in the options object.

Fixes: https://github.com/elastic/elasticsearch-js/pull/778

```js
client.bulk({
  index: 'index',
  type: '_doc',
  body: [...]
}, {
  querystring: {
    type: '_doc'
  }
}, console.log)
```
2019-03-19 09:53:43 +01:00
..
2019-02-15 18:36:28 +01:00
2019-02-28 10:57:59 +01:00
2019-03-12 12:04:13 +01:00
2019-02-21 12:48:49 +01:00
2019-02-19 09:34:23 +01:00
2019-03-12 10:50:58 +01:00
2019-02-15 18:36:28 +01:00