Skip to content

v1.2.1

Choose a tag to compare

@G4brym G4brym released this 02 Mar 21:33
· 100 commits to main since this release

What's Changed

  • fields now defaults to * when left undefined
  • Added a simplified where interface 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