Skip to content

Interface: CompileOptions

Defined in: src/query/compiler.ts:7

Properties

limit?

optional limit?: number

Defined in: src/query/compiler.ts:8


skip?

optional skip?: number

Defined in: src/query/compiler.ts:9


sort?

optional sort?: Record<string, -1 | 1>

Defined in: src/query/compiler.ts:10


schemas?

optional schemas?: Record<string, SchemaDef>

Defined in: src/query/compiler.ts:12

Registry of collectionName → schema, used to resolve multi-hop ref traversals.


allowRawOperators?

optional allowRawOperators?: boolean

Defined in: src/query/compiler.ts:19

When false (the default), a filter value that contains MongoDB operator keys ($-prefixed) is rejected as likely NoSQL operator injection — the common case being untrusted request data flowing into a filter value. Set true to allow raw operator objects (advanced, trusted callers only).

Released under the MIT License.