View as Markdown

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;
}
ToMongoOptions members (2)
NameSignatureDescription
operatorsoptionalreadonly operators?: Readonly<Record<string, (ctx: MongoOperatorContext) => MongoFilter>>;

Filter documents of custom operators; they also override built-ins.

pathSeparatoroptionalreadonly pathSeparator?: string;

Separator of nested field paths in the value; written as Mongo dots. Default '.'.