News for hackers. Stuff that matters.
Re:RedwoodJS 1.0 by beaconstudios on Monday April 04, 2022 @02:51PM (#30910585)
GraphQL is designed around CRUD fetching patterns - so typically you would have a query per data type slice, and that query can be as complex as you like. In order to avoid N+1 queries, you should use dataloader: https://github.com/graphql/dataloader.

You can also join additional data to reference in deeper resolvers, but that's an antipattern AFAIK.

Re:RedwoodJS 1.0 by benatkin on Monday April 04, 2022 @06:39PM (#30912903)
The latest release of dataloader happened more than 2 years ago.
Re:RedwoodJS 1.0 by doctorbuttes on Tuesday April 05, 2022 @12:31AM (#30915308)
Dataloader is a super simple idea + library; I doubt it needs any updating. Edit: great video on it by creator: https://youtu.be/OQTnXNCDywA
Re:RedwoodJS 1.0 by benatkin on Tuesday April 05, 2022 @01:08AM (#30915493)
It's a pretty reliable indicador of disuse.
Re:RedwoodJS 1.0 by michaelghayes on Tuesday April 05, 2022 @02:57AM (#30916083)
FWIW, the Guild (the group behind a lot of the more popular GraphQL libraries) has recently take stewardship of this package, and it looks like there are already a few recent PRs merged into the repo.

Lack of updates also isn't necessarily an indicator of disuse. It currently has close to 5 million weekly downlaods, roughly 1/5th of express which is probably the most popular library for building APIs in node.

Re:RedwoodJS 1.0 by girvo on Tuesday April 05, 2022 @12:17AM (#30915243)
Does it need more work? I'm genuinely asking, I've not used it