Attributes
Attributes allow to set a list of returning columns in resulting response. By default it's full set of columns which are defined in metadata of table.
See type DB Attribute for more details.
const query = {
filter: {
attributes: [
{ column: 'id', alias: 'rowId' },
{ column: 'createdAt' },
'updatedAt',
{ value: 1, alias: 'number' },
{ column: 'field1' },
{ func: 'LOWER', args: [{ column: 'field1' }], alias: 'lowerCaseField' }
]
},
context: {
tableName: '245ce633-796f-4dfa-ae6f-4b2762adbf44'
}
}