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

Method GetAll

shock-server/node/nodes.go:16–19  ·  view source on GitHub ↗
(q bson.M)

Source from the content-addressed store, hash-verified

14}
15
16func (n *Nodes) GetAll(q bson.M) (err error) {
17 _, err = dbFind(q, n, "", nil)
18 return
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})

Callers 2

HandleMethod · 0.95
mapRoutesFunction · 0.45

Calls 1

dbFindFunction · 0.85

Tested by

no test coverage detected