Some times there is a need to select only data and other times one needs to select only metadata. To make it easy, following select statement could be supported:
select(meta(), data())
Where meta() would include all metadata (columns with a _ prefix), and data() would include all data columns.
A combination like this, could also be used:
select(_id, data())
This would select only _id and all other data columns, excluding _type, _revision and _page.
Currently, there are two types of columns:
_
prefix_
Some times there is a need to select only data and other times one needs to select only metadata. To make it easy, following select statement could be supported:
Where
meta()
would include all metadata (columns with a_
prefix), anddata()
would include all data columns.A combination like this, could also be used:
This would select only
_id
and all other data columns, excluding_type
,_revision
and_page
.