Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doc mismatch with Javascript object #862

Open
beenotung opened this issue Jan 3, 2017 · 0 comments
Open

Doc mismatch with Javascript object #862

beenotung opened this issue Jan 3, 2017 · 0 comments

Comments

@beenotung
Copy link

hz version: 2.0.0

In the [doc] (http://horizon.io/docs/users/), there is a code snippet:

horizon.users.find("D6B8E9D0-CD96-4C01-BFD6-2AF43141F2A7").fetch().subscribe(
    (user) => {
        // add a 'name' key
        user.data.name = "Bob";
        horizon.users.replace(user);
    }
);

However, the shortcut horizon.users does not exist.
Also, the fetched object doesn't have data field.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant