parse-community / parse-server

Parse Server for Node.js / Express
https://parseplatform.org
Apache License 2.0
20.86k stars 4.78k forks source link

Querying non-existent classes throws an undefined error. #9123

Closed benoyugi closed 4 months ago

benoyugi commented 4 months ago

New Issue Checklist

Issue Description

I get an error when querying a class that has not yet been created.

Steps to reproduce

await Parse.Query("Non-existent class name").find({useMasterKey: true})

Actual Outcome

Unknown Error

Expected Outcome

Expected to get undefined using .first() or an empty array using .find()

Environment

parse-server v 7.0.0

Server

Database

Client

Logs

parse-github-assistant[bot] commented 4 months ago

Thanks for opening this issue!