Skip to content

Pass result to query.post() hooks #15899

@vkarpov15

Description

@vkarpov15

Prerequisites

  • I have written a descriptive issue title
  • I have searched existing issues to ensure the feature has not already been requested

🚀 Feature Proposal

Re: #15898, query.post() hooks should receive the query result as a parameter:

query.post(function(result) {
  if (result.deletedCount > 0) {
    // Handle successful delete
  }
});

Motivation

No response

Example

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    backwards-breakingenhancementThis issue is a user-facing general improvement that doesn't fix a bug or add a new feature

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions