baslr / arangochair

🥑 arangochair is a Node.js module that adds changefeed capability to ArangoDB and make it realtime push ready
91 stars 18 forks source link

Emit separate events for inserts and updates #12

Closed yerboogieman closed 12 months ago

yerboogieman commented 5 years ago

I was able to figure out how to emit separate events for inserts and updates instead of just having one "insert/update" event. Also, the field parsing code was not working with Arango v3.4.5, so I used JSON#parse instead of reading fields based on their indexed positions in the JSON string.