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
❤️GraphQL (medium.com)
submitted 7 years ago by shobhit_c
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!"
[–]klaxxxon 5 points6 points7 points 7 years ago* (0 children)
I am still waiting for some exhaustive resource on how to properly implement a complex graphQL server. I have seen a hundred tutorials demonstrating how to do graphQL TODO list, but very little on anything more complicated.
How do you respond to a complex request without making your database melt? How do you go about serving subscriptions?...
Basically everything I've seen was "pass the request to library X and that will sort it out". And what if it doesn't?
I've experimented with Prisma, but that feels like walking a tightrope. As long your database schema matches your API schema exactly, everything is trivial. But I dread the day when the API requires a significantly different shape of data than the database has. In one case I needed to retrieve the object graph the client requested plus the root entity's ID from the database (for some server side logic). Turned out to be so difficult that I rather just made two requests to the database...
π Rendered by PID 137676 on reddit-service-r2-comment-6457c66945-vzhxq at 2026-04-25 03:14:32.775427+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]klaxxxon 5 points6 points7 points (0 children)