v1.2.1
What's Changed
fieldsnow defaults to*when left undefined- Added a simplified
whereinterface when calling without arguments, the interface is still the same when calling with parameters
const fetched = await qb
.fetchAll({
tableName: 'employees',
where: ['active = true', 'department = "HR"'],
})
.execute()
// The example above is the same as this
const fetched = await qb
.fetchAll({
tableName: 'employees',
fields: '*',
where: {
conditions: ['active = true', 'department = "HR"'],
},
})
.execute()Full Changelog: v1.2.0...v1.2.1