resourcejs
resourcejs copied to clipboard
Return code 200 and empty array instead of error 500 on GET request for empty collection
I'm getting error 500 on GET /resource
requests, when resources
is empty collection in MongoDB.
Can you return code 200 and empty array instead?
@alphara this sounds like an actual error, if you have a collection with no entities, you will get a 200 w/ an empty array.
This will take some more investigation