all property
hi. im getting this error.
Property 'all' does not exist on type 'Omit<PgSelectBase<"
11 Replies
There is no
all
method in postgres select.so there is no way to combine multiple foreign rows into an array?
@Нарбек what do you want to accomplish? Could you please give more context?
for example.
It's just an example. I can't use ORM syntax in my case
i can't use ORM syntax because of this:
this filtering works when i use query builder syntax, but it doesn't when i use ORM syntax
@solo
orm syntax combines foreign rows into an array, but query builder syntax doesn't and thats why i needed all() method
@Нарбек
findMany
handle the nesting of related records for you, resulting in a structured object with users
nested within orders
. When using a query builder, you get flat rows because SQL doesn't provide nesting by default. To get nested results, you'll need to manually process the rows and construct the nested objects.All method constructs the objects right? Will it be impemented for postgresql?
As @Angelelz already said, there is no ‘all’ method in select . So I don’t know about its implementation
You can make it work with this syntax you just need to use a subquery in the where
I've used concat and raw ILIKE command but it doesn't work. Could you show working example of this kind of filtering please?
I'm doing this from memory so take it with a grain of salt
thanks