Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bad ref returned from .path #132

@PsychoLlama

Description

@PsychoLlama

It's easy to imagine a scenario when you'd want to hold a path context in a variable. Here's an example.

var users = Gun().get('examplses').set().path('users').set()
users.set('bob')
users.set('dave')

We'd expect the user object to interface exactly like a fresh gun instance. However, when calling users.val(), the relation is logged, instead of the node.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions