| BSON_COMPARE(3) | libbson | BSON_COMPARE(3) |
int bson_compare (const bson_t *bson, const bson_t *other);
The bson_compare() function shall compare two bson documents for equality.
This can be useful in conjunction with _qsort()_.
If equal, 0 is returned.
TIP:
less than zero, zero, or greater than zero in qsort() style.
MongoDB, Inc
2009-present, MongoDB, Inc.
| May 7, 2025 | 1.30.4 |