1MongoDB::DeleteResult(3U)ser Contributed Perl DocumentatiMoonngoDB::DeleteResult(3)
2
3
4

NAME

6       MongoDB::DeleteResult - MongoDB deletion result object
7

VERSION

9       version v2.2.2
10

SYNOPSIS

12           my $result = $coll->delete_one( { _id => $oid } );
13
14           if ( $result->acknowledged ) {
15               ...
16           }
17

DESCRIPTION

19       This class encapsulates the results from a deletion operation.
20

ATTRIBUTES

22   deleted_count
23       The number of documents that matched the filter.
24

METHODS

26   acknowledged
27       Indicates whether this write result was acknowledged.  Always true for
28       this class.
29
30   assert
31       Throws an error if write errors or write concern errors occurred.
32       Otherwise, returns the invocant.
33
34   assert_no_write_error
35       Throws a MongoDB::WriteError if write errors occurred.  Otherwise,
36       returns the invocant.
37
38   assert_no_write_concern_error
39       Throws a MongoDB::WriteConcernError if write concern errors occurred.
40       Otherwise, returns the invocant.
41

AUTHORS

43       •   David Golden <david@mongodb.com>
44
45       •   Rassi <rassi@mongodb.com>
46
47       •   Mike Friedman <friedo@friedo.com>
48
49       •   Kristina Chodorow <k.chodorow@gmail.com>
50
51       •   Florian Ragwitz <rafl@debian.org>
52
54       This software is Copyright (c) 2020 by MongoDB, Inc.
55
56       This is free software, licensed under:
57
58         The Apache License, Version 2.0, January 2004
59
60
61
62perl v5.36.0                      2022-07-22          MongoDB::DeleteResult(3)
Impressum