dao-xyz / peerbit

P2P database framework with encryption, sharding and search
https://peerbit.org
Apache License 2.0
196 stars 15 forks source link

`Documents`: Open after Put #199

Closed marcus-pousette closed 1 year ago

marcus-pousette commented 1 year ago

If document is DB following sequence of calls will cause problems

await docs.put(programThing) 
await client.open(programThing, {existing: 'reuse' })  

Because programthing is a "child" of docs, it will not exist in program index, so that 'reuse' flag can not be used.

What is the expected behaviour?

marcus-pousette commented 1 year ago

Closed in 5e73a2021029506dbca2452ff2080e773c07cc2f