rethinkdb / horizon-docs

Other
24 stars 35 forks source link

Users and groups #59

Closed hnordt closed 8 years ago

hnordt commented 8 years ago

In http://horizon.io/docs/users/:

horizon.users.find("D6B8E9D0-CD96-4C01-BFD6-2AF43141F2A7").fetch().subscribe(
    (user) => {
        user.data.name = "Bob";
        // store() ? isn't it replace()?
        // store() docs: "(...) must have id values that do not already exist
        // in the collection or an error will be raised"
        horizon.users.store(user); 
    }
);
danielmewes commented 8 years ago

You're right, it should be replace. Thanks for reporting this.

danielmewes commented 8 years ago

Changed in PR https://github.com/rethinkdb/horizon-docs/pull/60