function
TrimUncountedPage
TrimUncountedPage removes the overflow row from a SkipTotal read of at most limit+1 documents and reports whether it existed. Adapters trim before population so the overflow row is never materialized further.
Arguments
| Argument | Type | Description |
|---|---|---|
documents | []Document | The documents value. |
limit | int | The limit value. |
Returns
The declared result.
([]Document, bool)Full signature
func TrimUncountedPage(
documents []Document,
limit int,
) ([]Document, bool)Related types
DocumentA stored document with status and version metadata.