Skip to content

Parse.Query.explain breaks Parse.Cloud.afterFind #10007

@dplewis

Description

@dplewis

New Issue Checklist

Issue Description

Since query.explain doesn't return a Parse object it causes weird behavior in afterFind.

Steps to reproduce

Create an afterFind trigger, in the afterFind perform some array operation on req.objects. Call query with explain enabled.

Actual Outcome

If the afterFind is empty the explain results are never returned. If afterFind performs some operation they can have unexpected behavior

Expected Outcome

Should skip afterFind or allow explain results to pass through or explain should return array.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions