nestjs-query icon indicating copy to clipboard operation
nestjs-query copied to clipboard

Alternatives for "nestjs-query"

Open eugeny-dementev opened this issue 2 years ago • 8 comments

Since that library could be considered dead, what might be the replacement/alternative for it? Why it became obsolete, is there a better tool appeared/made by someone?

eugeny-dementev avatar Jun 15 '23 05:06 eugeny-dementev

@eugeny-dementev - This is the fork that is being pretty well maintained now.

https://github.com/TriPSs/nestjs-query

Scott

smolinari avatar Jun 15 '23 06:06 smolinari

My previous encounter (4-5 months ago) with that particular fork was less reliable compared to this one. I switched back to the doug-martin library for our codebase. It might be worth considering if someone's project lacks the necessary timeframe for contributions.

lume-code avatar Jun 15 '23 08:06 lume-code

In what ways less reliable? @TriPSs is keeping the library up-to-date and also even adding features. I've helped too where I can.

Scott

smolinari avatar Jun 15 '23 09:06 smolinari

@smolinari I can't recall the exact problem I encountered (I think it related to one of the decorator hooks being skipped), but I remember vividly that, at that time, the relations were not joined to execute a single database query. Instead, in most instances, a separate query was made for each relation.

lume-code avatar Jun 16 '23 07:06 lume-code

@ridyio good to know that for simple relations we now have the enableLookAhead option that will do it in one query, for other relations (one -> many) it's usually faster to do it in separate queries.

TriPSs avatar Jun 16 '23 08:06 TriPSs

it's usually faster to do it in separate queries

Or, if it is dealing with the n+1 problem, set up data loaders.

Scott

smolinari avatar Jun 16 '23 10:06 smolinari

Thanks @TriPSs @smolinari. Glad to see that your fork is actively maintained. I'll surely try it out again.

lume-code avatar Jun 17 '23 10:06 lume-code

@doug-martin we should open up the maintainer group to keep this project alive

TechnotronicOz avatar Apr 28 '24 14:04 TechnotronicOz