Skip to content

Commit

Permalink
[DOCS] [BUGFIX] recordRef push param must be with type
Browse files Browse the repository at this point in the history
Fixes #5808
Added type to push data with value "user"
  • Loading branch information
Rajasegar authored and runspired committed Mar 5, 2019
1 parent 1c92874 commit 2858c32
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion addon/-private/system/references/record.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,13 @@ export default class RecordReference extends Reference {
let userRef = store.getReference('user', 1);
// provide data for reference
userRef.push({ data: { id: 1, username: "@user" }}).then(function(user) {
userRef.push({
data: {
id: "1",
type: "user",
username: "@user"
}
}).then(function(user) {
userRef.value() === user;
});
```
Expand Down

0 comments on commit 2858c32

Please sign in to comment.