Closed sunnyzanchi closed 6 years ago
This is for #29. It exposes the _delete symbol so that users of the library can specify they want a document to be deleted from Elasticsearch without checking for some arbitrary string. In the transform function, they can return a document like
_delete
import { _delete } from 'rethinkdb-elasticsearch-stream'; ... transform: ({ document }) => ({ ...document, _delete })
This will send a DELETE request to Elasticsearch.
I also had to upgrade nock to 9.2.3, 9.0.14 was causing tests to fail.
This is for #29. It exposes the
_delete
symbol so that users of the library can specify they want a document to be deleted from Elasticsearch without checking for some arbitrary string. In the transform function, they can return a document likeThis will send a DELETE request to Elasticsearch.
I also had to upgrade nock to 9.2.3, 9.0.14 was causing tests to fail.