MCPcopy Create free account
hub / github.com/MG-RAST/Shock / GetPaginated

Method GetPaginated

shock-server/node/nodes.go:21–24  ·  view source on GitHub ↗
(q bson.M, limit int, offset int, order string)

Source from the content-addressed store, hash-verified

19}
20
21func (n *Nodes) GetPaginated(q bson.M, limit int, offset int, order string) (count int, err error) {
22 count, err = dbFind(q, n, order, map[string]int{"limit": limit, "offset": offset})
23 return
24}

Callers 1

ReadManyMethod · 0.95

Calls 1

dbFindFunction · 0.85

Tested by

no test coverage detected