given a node on the graph this returns all the leaf node that have not yet been saved
nodeObject
Returns Array
sets a value on a root object given its path
nodeObjectpathStringvalueanynoLinkboolean 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
nodeObjectpathStringdropOptionsboolean 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
nodeObjectlevelsInteger (optional, default1)dropOptionsboolean 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
nodeObjectoptsObject encoding options fordag.put(optional, default{})opts.onHashFunction a callback that happens on each merklized node. It is given two argumentshashandnodewhich is the node that was hashed
Returns Promise