Skip to content

Comparing two fields #358

@edobrb

Description

@edobrb

Typetta should be able to accept fields comparison in the filter:

proposal 1:

// field and operator are type safe
await user.findAll({ filter: { updatedAt: { compare: { field: 'createdAt', operator: 'gt' } } } })

proposal 2

// compare is type safe
await user.findAll({ filter: { updatedAt: { compare: '> createdAt' } } })

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions