When you attempt to query using an index that doesn't exist you get an error like this:
Cannot read property 'type' of undefined
Because I'm using RxDB + Mobx it's doubly confusing as mobx catches it and displays:
Which is really hard to parse. Any chance we could make the errors here a bit nicer, including some information on the query and whats wrong with it? Ideally:
Could not compile query $('users').find().sort({ created: 'desc' }):
The sort field "created" is not a field in the schema!
When you attempt to query using an index that doesn't exist you get an error like this:
Because I'm using RxDB + Mobx it's doubly confusing as mobx catches it and displays:
Which is really hard to parse. Any chance we could make the errors here a bit nicer, including some information on the query and whats wrong with it? Ideally: