We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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
The text was updated successfully, but these errors were encountered:
Good catch! This seems like a bug since the documentation mentions it should return null:
null
data/addon/-private/system/store.js
Lines 981 to 984 in 5fceead
Wanna submit a bugfix PR?
Sorry, something went wrong.
Sure - so null everywhere?
Yes. Have you found other undefined values for value()?
undefined
value()
No branches or pull requests
If the record does not exist in the store, we get the following:
while belongsToReference
The docs treat these too cases the same
The text was updated successfully, but these errors were encountered: