From 2858c32dbc9458bb28f95c31a5afdeb7a499ea35 Mon Sep 17 00:00:00 2001 From: Rajasegar Date: Mon, 4 Mar 2019 14:34:46 +0530 Subject: [PATCH] [DOCS] [BUGFIX] recordRef push param must be with type Fixes #5808 Added type to push data with value "user" --- addon/-private/system/references/record.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/addon/-private/system/references/record.ts b/addon/-private/system/references/record.ts index daaac916018..51b599825db 100644 --- a/addon/-private/system/references/record.ts +++ b/addon/-private/system/references/record.ts @@ -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; }); ```