Skip to content

Commit

Permalink
Models: add filter method
Browse files Browse the repository at this point in the history
  • Loading branch information
jsmrcaga committed Apr 1, 2022
1 parent cec51bd commit a9139d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/model.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class Model {
});
}

static filter({ prefix, limit, cursor }) {
return this.KV_BINDING.list({ prefix, limit, cursor });
}

static bind_kv(binding) {
this.KV_BINDING = binding;
}
Expand Down

0 comments on commit a9139d2

Please sign in to comment.