given a node on the graph this returns all the leaf node that have not yet been saved
node
Object
Returns Array
sets a value on a root object given its path
node
Objectpath
Stringvalue
anynoLink
boolean if true, value is added as a plain object instead of a link
Returns Promise
traverses an object's path and returns the resulting value in a Promise
node
Objectpath
StringdropOptions
boolean whether to add the encoding options of the nodes when loading from IPFS. Defaults to true
Returns Promise
Resolves all the links in an object and does so recusivly for N level
node
Objectlevels
Integer (optional, default1
)dropOptions
boolean whether to add the encoding options of the nodes when loading from IPFS. Defaults to true
Returns Promise
flush an object to ipfs returning the resulting CID in a promise
node
Objectopts
Object encoding options fordag.put
(optional, default{}
)opts.onHash
Function a callback that happens on each merklized node. It is given two argumentshash
andnode
which is the node that was hashed
Returns Promise