OpenHausIO / backend

HTTP API for the OpenHaus SmartHome/IoT solution
https://docs.open-haus.io
6 stars 2 forks source link

Check possibility to return Buffers from mongodb insteand of "mongodb.Binary" #469

Open mStirner opened 6 months ago

mStirner commented 6 months ago

Instead of doing this: https://github.com/OpenHausIO/backend/blob/b8f52009c0cf919ffe374b9b733e97d762b8224b/components/endpoints/class.command.js#L85-L87

Check if there are a possibility to return node.js buffer instaces. Somehwere while implment the backup import/export functionality for the databse, (...insertMany() blabla) i read something about "buffer instead of binary" option