1BSON::MaxKey(3) User Contributed Perl Documentation BSON::MaxKey(3)
2
3
4
6 BSON::MaxKey - BSON type wrapper for MaxKey
7
9 version v1.10.2
10
12 use BSON::Types ':all';
13
14 bson_maxkey();
15
17 This module provides a BSON type wrapper for the special BSON "MaxKey"
18 type. The object returned is a singleton.
19
21 TO_JSON
22 If the "BSON_EXTJSON" option is true, returns a hashref compatible with
23 MongoDB's extended JSON
24 <https://github.com/mongodb/specifications/blob/master/source/extended-
25 json.rst> format, which represents it as a document as follows:
26
27 {"$maxKey" : 1}
28
29 If the "BSON_EXTJSON" option is false, an error is thrown, as this
30 value can't otherwise be represented in JSON.
31
33 · David Golden <david@mongodb.com>
34
35 · Stefan G. <minimalist@lavabit.com>
36
38 This software is Copyright (c) 2018 by Stefan G. and MongoDB, Inc.
39
40 This is free software, licensed under:
41
42 The Apache License, Version 2.0, January 2004
43
44
45
46perl v5.28.1 2018-12-07 BSON::MaxKey(3)