You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
> The dag API comes to replace the `object API`, it support the creation and manipulation of dag-pb object, as well as other IPLD formats (i.e dag-cbor, ethereum-block, git, etc)
`cid` is a [CID][https://github.com./ipfs/js-cid] instance.
29
+
-`cid` is a [CID][https://github.com./ipfs/js-cid] instance.
31
30
32
31
`callback` must follow `function (err, dagNode) {}` signature, where `err` is an error if the operation was not successful and `dagNode` is the IPLD format DAG node retrieved.
33
32
34
33
If no `callback` is passed, a [promise][] is returned.
-`cid` is a [CID][https://github.com./ipfs/js-cid] instance.
44
+
-`path` is a String that represents a valid path to be resolved
45
+
46
+
`callback` must follow `function (err, value) {}` signature, where `err` is an error if the operation was not successful and `value` is the value it was retrieved.
47
+
48
+
If no `callback` is passed, a [promise][] is returned.
49
+
50
+
#### `dag.remove`
51
+
52
+
> Deletes an IPLD node
53
+
54
+
##### `Go`**WIP**
55
+
56
+
##### `JavaScript` - ipfs.dag.rm(cid, callback)
57
+
58
+
-`cid` is a [CID][https://github.com./ipfs/js-cid] instance.
59
+
60
+
`callback` must follow `function (err) {}` signature, where `err` is an error if the operation was not successful.
61
+
62
+
If no `callback` is passed, a [promise][] is returned.
0 commit comments