apibara / dna

Apibara is the fastest platform to build production-grade indexers that connect onchain data to web2 services.
https://www.apibara.com/
Apache License 2.0
166 stars 26 forks source link

sink-mongo: skip mongo operations if no data provided #348

Closed fracek closed 3 months ago

fracek commented 3 months ago

Summary

This PR fixes a MongoDB error if the sink received no data from the transform function. This usually happens once the indexer reaches the tip of the chain.

Testing strategy