We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3740d9e commit 59d2e60Copy full SHA for 59d2e60
docstore/memdocstore/query.go
@@ -44,6 +44,7 @@ func (c *collection) RunGetQuery(_ context.Context, q *driver.Query) (driver.Doc
44
if q.OrderByField != "" {
45
sortDocs(resultDocs, q.OrderByField, q.OrderAscending)
46
}
47
+
48
if q.Limit > 0 && len(resultDocs) > q.Limit {
49
resultDocs = resultDocs[:q.Limit]
50
0 commit comments