If the record does not exist in the store, we get the following:
let recordReference = this.store.getReference('book', '1');
recordReference.value() === undefined
while belongsToReference
let author = this.store.peekRecord('author', 1);
author.belongsTo('book').value() === null
The docs treat these too cases the same
Good catch! This seems like a bug since the documentation mentions it should return null:
Wanna submit a bugfix PR?
Sure - so null everywhere?
Yes. Have you found other undefined values for value()?
Most helpful comment
Sure - so null everywhere?