Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<PropertyGroup>
<JasperFxVersion>2.16.0</JasperFxVersion>
<JasperFxVersion>2.17.0</JasperFxVersion>
<LangVersion>13</LangVersion>
<NoWarn>1570;1571;1572;1573;1574;1587;1591;1701;1702;1711;1735;0618</NoWarn>
<Authors>Jeremy D. Miller;Jaedyn Tonee</Authors>
Expand Down
11 changes: 10 additions & 1 deletion src/JasperFx/Documents/IDocumentStoreDiagnostics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,16 @@ public record DocumentTypeRef(string TypeName, string Alias, string SchemaName);
/// optional <see cref="IdEquals"/> narrows to a single id. Room to grow simple criteria later without a
/// signature break.
/// </summary>
public record DocumentQueryOptions(int PageNumber, int PageSize, string? IdEquals = null);
public record DocumentQueryOptions(int PageNumber, int PageSize, string? IdEquals = null)
{
/// <summary>
/// Optional tenant id to scope the query to. For conjoined tenancy the implementation filters by the
/// store's tenant column; for database-per-tenant it targets that tenant's physical database. Null
/// queries the default/main tenant. Added as an init-only member (not a positional parameter) so the
/// record stays binary-compatible. See JasperFx/CritterWatch EVENT_STORE_EXPLORER_PLAN §3.1.
/// </summary>
public string? TenantId { get; init; }
}

/// <summary>A page of stored documents as raw JSON, with the total matching count for pager UIs.</summary>
public record DocumentQueryResult(IReadOnlyList<string> DocumentsJson, long TotalCount, int PageNumber, int PageSize);
Loading