MongoFilterCompiler

Compiles an admitted filter to a MongoDB match document. One compiler serves both query models: admission has already resolved every field to its physical path, so nothing here depends on the model.

Functions

Link copied to clipboard
fun compile(admitted: AdmittedQuery<FilterExpression>): Bson

Compiles an admitted count filter.

fun compile(filter: FilterExpression, admitted: AdmittedQuery<*>): Bson

Compiles filter, a filter of admitted, reading each field's resolution: absolute physical paths, so the filter also applies inside unwound element scopes.