prorm API Reference
    Preparing search index...

    Interface ElementQueryOptions

    Filters shared by findVertices()/findEdges().

    interface ElementQueryOptions {
        label?: string;
        has?: Record<string, unknown>;
        limit?: number;
    }
    Index
    label?: string

    Restrict to a single label, i.e. a hasLabel(label) step.

    has?: Record<string, unknown>

    Equality filters, one has(key, value) step per entry. All entries are ANDed together (Gremlin's default has() chaining behavior). For anything beyond flat equality (ranges, P.within, regex, OR logic), use traversal() directly.

    limit?: number

    Caps the number of results, i.e. a limit(n) step.