Skip to content
New issue

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

Cannot convert undefined or null to object #20

Open
mcorning opened this issue Aug 20, 2020 · 1 comment
Open

Cannot convert undefined or null to object #20

mcorning opened this issue Aug 20, 2020 · 1 comment

Comments

@mcorning
Copy link

Subject is a common error when you forget to wrap your payload in a data:{} object.

looks like you might need to fix the sample
Todo.$create({
title: this.todo
})
to read:
Todo.$create({
data:{title: this.todo }
})
yeah?

@Colorfulstan
Copy link

I'm also running into this issue when using .$get(id) when there is no item with that key stored in indexedDB.
This is a pretty strange error, I was expecting it returns null or something if there is no stored item, but it seems to break.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants