Skip to content
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
This repository was archived by the owner on Mar 10, 2020. It is now read-only.

Add pin option to dag.put #456

Closed
Closed
@joeltg

Description

@joeltg

Right now you can stick a boolean pin property in the options argument to ipfs.add (and addReadableStream, etc), but there's no equivalent for ipfs.dag.put. This is awkward if you want to selectively pin or not pin your IPLD nodes and amounts to two-step ipfs.dag.put(object, options).then(cid => shouldWePinThis && ipfs.pin.add(cid.toString()) construction.

Not sure if this is the appropriate place to raise this issue but thought I'd bring it up here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions