1MongoDB::InsertOneResulUts(e3r)Contributed Perl DocumentMaotnigoonDB::InsertOneResult(3)
2
3
4

NAME

6       MongoDB::InsertOneResult - MongoDB single insert result object
7

VERSION

9       version v2.2.1
10

SYNOPSIS

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

DESCRIPTION

19       This class encapsulates the result from the insertion of a single
20       document.
21

ATTRIBUTES

23   inserted_id
24       The identifier of the inserted document.
25

METHODS

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

AUTHORS

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