Skip to content

Allow beforeFind to be short circuited #8693

@dblythy

Description

@dblythy
Member

New Feature / Enhancement Checklist

  • I am not disclosing a vulnerability.
    I am not just asking a question.
    I have searched through existing issues.

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

Activity

parse-github-assistant

parse-github-assistant commented on Jul 19, 2023

@parse-github-assistant

Thanks for opening this issue!

  • 🎉 We are excited about your ideas for improvement!
linked a pull request that will close this issue on Jul 19, 2023
linked a pull request that will close this issue on May 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Participants

      @dblythy@mtrezza

      Issue actions

        Allow beforeFind to be short circuited · Issue #8693 · parse-community/parse-server