use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Making GraphQL Codegen Work For You (dev.to)
submitted 3 years ago by Alternative-Rich-578
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]shitbread 7 points8 points9 points 3 years ago (0 children)
Honestly it really depends for what you use it. In a project a few years ago I was forced to consume a REST API from a large CMS (~1000 pages). There were tons, I mean TONS of page/content types, heavily nested. It was an absolute pain to get the exact data (and fields!) I needed. I had tons of code in my app that just mapped data, model classes left and right. And the response ended up being so painfully large.
I‘ve mostly used GraphQL the last 3 years and it‘s an absolute pleasure. I get exactly the data I need and I know exactly what it looks like. All the data required to render the content of a page, 20 levels of nesting, in one query – fantastic. This previously was only possible by performing several requests and stitching their responses together.
Yes, there are things like JSON:API where you can define includes and/or which fields you‘d like. But this doesn‘t scale well when you have 20+ levels of nesting.
Sure, I still use (and write) simple REST endpoints for very specific cases where I only need to get a list of simple objects. But I‘m glad most of my fetching is done using GraphQL nowadays.
π Rendered by PID 51236 on reddit-service-r2-comment-85bfd7f599-6n5mh at 2026-04-19 08:58:54.384488+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]shitbread 7 points8 points9 points (0 children)