byId function

Filter byId(
  1. NitriteId id
)

Returns a filter that matches documents with the specified NitriteId.

The returned filter matches documents where the value of the "docId" field is equal to the specified NitriteId's idValue.

Example usage:

var id = NitriteId.newId();
var filter = byId(id);
var result = collection.find(filter);

Implementation

Filter byId(NitriteId id) => EqualsFilter(docId, id.idValue);