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
181 stars 32 forks source link

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

Closed fracek closed 8 months ago

fracek commented 8 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