Astrocoders / Astrocoders/postgres-orm

Handle with other operators besides =

Open
#7 2 comments 0 reactions 0 assignees View on GitHub
discussion enhancement
Dominant language
TypeScript
Stars
8
Forks
1
PR merge metrics
No merged PRs in 30d

Description

We can use raw SQL but would be nice something less handful

`SELECT * FROM users WHERE id != "bla"`

Something like that:

`Foo.find({ name: { type: NOT, value: "James" } })`

@fakenickels idea:
`Foo.find({ name: Not("James") })`
`Not(Between (2))`

A class from Operator, so we can switch on top
So we can have Not, Equal, Between
And in the query builder we detect and add the correspondent query

More ideas?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.