MCPcopy Create free account
hub / github.com/sshwsfc/xadmin / query

Method query

packages/xadmin/src/api.js:21–25  ·  view source on GitHub ↗
(filter = {}, wheres = {})

Source from the content-addressed store, hash-verified

19 }
20
21 query(filter = {}, wheres = {}) {
22 return this.fetch().then(ds => ({
23 total: ds.length, items: ds.slice(filter.skip || 0, (filter.skip || 0) + parseInt(filter.limit || 15))
24 }))
25 }
26
27 get(id = '') {
28 return this.fetch(id)

Callers 2

handle_get_listFunction · 0.80
RelateBaseClass · 0.80

Calls 1

fetchMethod · 0.95

Tested by

no test coverage detected