Skip to content
Merged
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,13 @@ public override IReadOnlyList<PageEdge<TNode>>? Edges
/// </summary>
[GraphQLDescription("Identifies the total count of items in the connection.")]
public int TotalCount => _page.TotalCount ?? -1;

/// <summary>
/// Converts a <see cref="Page{TNode}"/> to a <see cref="PageConnection{TNode}"/>.
/// </summary>
/// <param name="page">
/// The page to convert.
/// </param>
public static implicit operator PageConnection<TNode>(Page<TNode> page)
=> new(page);
}
Loading