Skip to content

MongoDbProfile

Translates the MongoDB version 1 non-null scalar fragment.

The profile emits MongoDbPredicate.filter as a typed cel.expr.Value document. It never creates a JavaScript driver object or treats a CEL constant as a MongoDB operator. CEL null, optional values, temporal values, and field-absence tests are rejected. matches_string accepts only the documented resource-bounded RE2 and PCRE2 subset.

new MongoDbProfile(): MongoDbProfile

MongoDbProfile

readonly capability: DialectCapabilityProfile = MongoDbProfile.capability

Machine-readable declaration for this profile instance.

Profile.capability


readonly outputSchema: GenMessage<MongoDbPredicate> = MongoDbPredicateSchema

Protobuf schema produced by this profile.

Profile.outputSchema


readonly static capability: DialectCapabilityProfile

Capability declaration for the MongoDB filter translation fragment.

translate(context, functions): MongoDbPredicate

Translates one expression through the constructed profile.

ProfileContext

ReadonlyMap<string, MongoDbTranslation>

MongoDbPredicate

Profile.translate


validate(context, functions): void

Validates one expression through the constructed profile.

ProfileContext

ReadonlyMap<string, MongoDbTranslation>

void

Profile.validate


readonly validateConfiguration(configuration): void

Rejects configuration because this MongoDB fragment has no configuration surface.

Any | undefined

void

Profile.validateConfiguration