Skip to content

Allow beforeFind to be short circuited #8693

@dblythy

Description

@dblythy

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

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

    Development

    No branches or pull requests

    Issue actions