Skip to content

Function Max

aggregated values of datetime field

typescript
await FedacoTestUser.createQuery().create({
  id: 1,
  email: 'test1@test.test',
  created_at: '2021-08-10 09:21:00',
  updated_at: new Date()
});
await FedacoTestUser.createQuery().create({
  id: 2,
  email: 'test2@test.test',
  created_at: '2021-08-01 12:00:00',
  updated_at: new Date()
});
ReferenceLooks LikeValue
await FedacoTestUser.createQuery().min('created_at')exactly match'2021-08-01 12:00:00'

see also prerequisites

Released under the MIT License.