Discussion for https://github.com/Orbitdb/orbit-db. Community docs and CoC at https://github.com/Orbitdb/welcome. FAQ: https://github.com/orbitdb/orbit-db/blob/master/FAQ.md
Post "http://127.0.0.1:5001/api/v0/block/get?arg=%2Fipld%2Fbafyreif[stuff]66sccjv4"
Hi team! I'm implementing a Node app that is backed by an orbitDB keyvalue store. My config looks like this:
const ipfs = await IpfsHttpClient.create({
host: 'ipfs',
port: '5001',
protocol: 'http'
}); // We have an IPFS node running in the same docker
const orbitDB = await OrbitDB.createInstance(ipfs);
const options = {};
const metricsDB = await orbitDB.keyvalue('kvDb', options)
await metricsDB.load()
<do db stuff>
After this I can set and get data but we can't seem to find the data on IPFS (it seems to me that the data is only coming from orbitdb local storage on node). Maybe there is something missing in the config? :pray: Thank you for your time in advance!
I can set and get data but we can't seem to find the data on IPFS
can you elaborate @zestified
metricsDB.set(key, value)
and metricsDB.get(key)
and that will return the data. However, im not sure whether these key value pair data is persisted on my ipfs node or just in /orbitdb
folder (which is created by default whenever i run the app). So how do i find these data on my ipfs?