BSON::MaxKey(3pm)
π BSON::MaxKey π
ok bestie, welcome to BSON::MaxKey, the Perl manual page for the BSON type wrapper for MaxKey β yes, that's the whole vibe, it's a tiny little legend and we're obsessed π
This page lives in the User Contributed Perl Documentation section, so you already know it's giving community-crafted excellence β¨
β¨ VERSION β¨
version v1.12.2 π
β¨ SYNOPSIS β¨
okay so here's literally all you gotta do:
use BSON::Types ':all';
bson_maxkey();
that's it. that's the whole thing. slay πΈ
β¨ DESCRIPTION β¨
so this module hands you a BSON type wrapper for the special BSON "MaxKey" type π and here's the cute part: the object you get back is a singleton π β like, there's only ever one of it, main character energy fr fr, no cap.
β¨ METHODS β¨
TO_JSON
okay so this one's conditional, pay attention bestie π«Ά
- If the
BSON_EXTJSONoption is true, you get back a hashref that's compatible with MongoDB's extended JSON format β that's the spec over at https://github.com/mongodb/specifications/blob/master/source/extended-json.rst β and it represents the thing as a document like this:
{"$maxKey" : 1}
- If the
BSON_EXTJSONoption is false, an error is thrown, because this value literally cannot be represented in JSON any other way π that's not a vibe, that's just the rules.
β οΈ heads up: flip that BSON_EXTJSON flag off and it's not gonna shrug and give you something cute β it throws. periodt.
β¨ AUTHORS β¨
the icons who made this happen π«Ά
- David Golden
<david@mongodb.com> - Stefan G.
<minimalist@lavabit.com>
β¨ COPYRIGHT AND LICENSE β¨
This software is Copyright (c) 2020 by Stefan G. and MongoDB, Inc. π
This is free software, licensed under:
The Apache License, Version 2.0, January 2004
and that's the whole page bestie, tysm for reading π this was BSON::MaxKey, rendered by perl v5.30.3 and dated 2020-08-14 β love that for us, see you in the next manpage, mwah πβ¨
π¦ where this page comes from
- debian bookworm: libbson-perl 1.12.2-1 Β· Apache-2.0
- ubuntu jammy: libbson-perl 1.12.2-1 Β· Apache-2.0
- ubuntu noble: libbson-perl 1.12.2-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms