Why Database Query and Database Paged Query have different JSON representation?

Why does Database Query step and Database Paged Query steps have different JSON representation?

Putting a Repeat step, for database query it’s just “query”, but for database paged query it’s “query.data”

Just a heads-up, that changing from Database Query to Paged and vice-versa requires further changes in your code due to this situation (query <-> query.data)

P.S.: This is on NodeJS

Pages Query has an additional data wrapper for all the paging information. And a “data” object for the real data.

For regular queries this is not needed and there you have just the data directly.

Because of that difference indeed switching needs to rebind the repeating data expressions.