parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

Queries on Relations don't seem to be working

Open sprabs opened this issue 10 years ago • 8 comments

I am seeing this error message: Uncaught internal server error. [TypeError: Cannot read property 'query' of undefined] TypeError: Cannot read property 'query' of undefined

My code is querying a relation. It doesn't seem to like this. We query relations a lot. Is this a bug with parse-server or is there some modifications that I need to make in order to get this to work? I have not been able to find any information about relations in the migration guides.

sprabs avatar Mar 03 '16 01:03 sprabs

https://github.com/ParsePlatform/parse-server/issues/550 and https://github.com/ParsePlatform/parse-server/issues/432 have similar issues. You may try the fix indicated there.

nathan-savvy avatar Mar 03 '16 02:03 nathan-savvy

Looks like https://github.com/ParsePlatform/parse-server/pull/769 has a potential fix for this. Will it be merged in to the main branch soon?

sprabs avatar Mar 03 '16 02:03 sprabs

Just been merged feel free to test!

flovilmart avatar Mar 03 '16 03:03 flovilmart

@flovilmart Thank you--will do! Do you have a best practices on how to update our parse-server code? I am running this on Elastic Beanstalk.

sprabs avatar Mar 03 '16 03:03 sprabs

It all depends on you installation, you can point your dependency to parseplatform/parse-sever in package.json and then run npm install.

flovilmart avatar Mar 03 '16 03:03 flovilmart

@sprabs can you give the stack trace with the error?

flovilmart avatar Mar 03 '16 13:03 flovilmart

Not much activity there, I will assume given the thread that parse-sever 2.1.5 has the proper fix

flovilmart avatar Mar 11 '16 18:03 flovilmart

I'm still getting this randomly.

RafaRuiz avatar Jul 23 '16 15:07 RafaRuiz