Closed mslourens closed 1 year ago
Delete the project key from your Deta dashboard under Project Keys
tab. You should not share your project keys publicly.
Your query { 'questions.answer?': '' }
is not of the right format. There is no operator after ?
. That's what causing your node server to crash.
Again please remove your project key from your Deta dashboard and the StackBlitz environment you have shared.
Sorry, I thought it was just a test project, I could share it, but it will open the project up to everyone with bad intent. I removed the project key. And the issue is all mine, because my express implementation was not catching any errors, therefore it crashed. I will close this issue.
When I try to query my data using a bad query, the server crashes.
Steps to reproduce:
http://localhost:3102/surveys/unanswered
Bad query
Expected behavior: I would expect the server never to crash, but to return a 500 error with the message 'Bad query'.