API reference: @salmonui/query-builder/mongo
ToMongoOptionsinterface
import type { ToMongoOptions } from '@salmonui/query-builder/mongo';interface ToMongoOptions {
readonly operators?: Readonly<Record<string, (ctx: MongoOperatorContext) => MongoFilter>>;
readonly pathSeparator?: string;
}
| Name | Signature | Description |
|---|---|---|
operatorsoptional | readonly operators?: Readonly<Record<string, (ctx: MongoOperatorContext) => MongoFilter>>; | Filter documents of custom operators; they also override built-ins. |
pathSeparatoroptional | readonly pathSeparator?: string; | Separator of nested field paths in the value; written as Mongo dots. Default |