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