Skip to content

Add support for $href #57

Open
Open
@carlobeltrame

Description

@carlobeltrame

In #1 and #10 we added $post and similar accessors on StoreValue objects. We could just as easily add an $href accessor, which would make using href much more readable:

Current

const authorUri = await this.api.href(book, 'author')

Proposed

const authorUri = await book.$href('author')

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