-
Notifications
You must be signed in to change notification settings - Fork 49
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
I got 'Cannot read property 'get' of undefined' error on a simple join #89
Comments
Please share the actual error message and a full example of the service call. |
Here is the code, it is in a hook in
The error is:
|
I see in the error stack that socket.io-client is used in your test, so you're probably testing this with a client. For testing purposes, you can try to call the service internally in the server and see if it works. Your error message could be thrown before even reaching the hook. you can debug and see if the hook is actually executed. My guess is that this error has nothing to do with feathers-objection. it looks like an error you would get if a service doesn't exists, e.g. not loaded, or if you're are calling a service by name with a typo or missing something, like API version prefix. |
You may be right. I did not had the export class declaration as in your example. Tried to modify it but I got an babel error but that's not an objections error. Meanwhile I solve it with another approach, may surf back to it later. |
most probably I do something wrong.
I have a table
customers
and one withaddress
.query = { '$eager': 'address' }
or{ '$joinRelation': 'address' }
returns the error.Note: bellow code works:
here is my customers.model:
so what do I do wrong?
The text was updated successfully, but these errors were encountered: