icebob
released this
07 Jul 10:45
·
301 commits
to master
since this release
New
New createMany
method
A new createMany
method is created. With it you can insert many entities to the database.
this.createMany(ctx, {
entities: [...]
});
New list
action with pagination
There is a new list
action with pagination support.
broker.call("posts.list", { page: 2, pageSize: 10});
The result is similar as
{
rows: [
{ title: 'Post #26' },
{ title: 'Post #27' },
{ title: 'Post #25' },
{ title: 'Post #21' },
{ title: 'Post #28' }
],
total: 28,
page: 2,
pageSize: 10,
totalPage: 3
}
New settings
pageSize
- Default page size inlist
action. Default:10
maxPageSize
- Maximum page size inlist
action. Default:100
maxLimit
- Maximum value of limit infind
action. Default:-1
(no limit)