Table of Contents

Class DocumentListQuery

Namespace
Tharga.MongoDB
Assembly
Tharga.MongoDB.dll
public record DocumentListQuery : IEquatable<DocumentListQuery>
Inheritance
DocumentListQuery
Implements
Inherited Members

Properties

FilterJson

Optional Mongo filter as a JSON string (e.g. {"Status":"Active"}). Empty/null = match all.

public string FilterJson { get; init; }

Property Value

string

Limit

Maximum documents to return. Default 20, capped at 200 by the implementation.

public int Limit { get; init; }

Property Value

int

Skip

Documents to skip before returning results.

public int Skip { get; init; }

Property Value

int

SortJson

Optional sort spec as a JSON string (e.g. {"CreatedAt":-1}). Empty/null = no sort.

public string SortJson { get; init; }

Property Value

string