Skip to content
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

Allow beforeFind to be short circuited #8693

Open
3 tasks done
dblythy opened this issue Jul 19, 2023 · 1 comment · May be fixed by #8694
Open
3 tasks done

Allow beforeFind to be short circuited #8693

dblythy opened this issue Jul 19, 2023 · 1 comment · May be fixed by #8694
Labels
type:feature New feature or improvement of existing feature

Comments

@dblythy
Copy link
Member

dblythy commented Jul 19, 2023

New Feature / Enhancement Checklist

Current Limitation

There are cases where it would be good to be able to return objects from a beforeFind trigger, bypassing the inbuilt RestQuery

Feature / Enhancement Description

Allow beforeFind to return objects

Example Use Case

  • loading objects from a cache
  • loading objects from an external search, such as Elastic Search
  • gracefully cancelling a query, returning [] without needing to throw

Alternatives / Workarounds

Use a cloud function

3rd Party References

https://community.parseplatform.org/t/return-the-data-from-beforefind-trigger-and-stop-the-find-query/826

@parse-github-assistant
Copy link

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!

@dblythy dblythy linked a pull request Jul 19, 2023 that will close this issue
1 task
@mtrezza mtrezza added the type:feature New feature or improvement of existing feature label Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature or improvement of existing feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants