php8.5
Home/ Manual/ mongodb / bson/ The MongoDB\BSON\MaxKey class

The MongoDB\BSON\MaxKey class

Special BSON type which compares higher than all other possible BSON element values.

Intro

Special BSON type which compares higher than all other possible BSON element values.

Note

This is an internal MongoDB type used for indexing and sharding.

Class synopsis

class MongoDB\BSON\MaxKey { }

Changelog

VersionDescription
PECL mongodb 1.3.0Implements MongoDB\BSON\MaxKeyInterface.
PECL mongodb 1.2.0Implements Serializable and JsonSerializable.

Maxkey

In this section

Source: reference/mongodb/bson/maxkey.xml · from the official PHP manual (php/doc-en)