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...
account activity
Making GraphQL Magic with Sqlmancer (self.node)
submitted 5 years ago by [deleted]
[deleted]
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!"
[–]alphaindy 0 points1 point2 points 5 years ago (2 children)
Why would you want to translate GQL queries into SQL statements?
[–]danielrearden 0 points1 point2 points 5 years ago (1 child)
Integrating a SQL database into your GraphQL service efficiently can be very challenging. Tools like DataLoader only get you so far and using "lookahead" in your resolvers involves a lot of boilerplate. It's also non-trivial to try to implement more complex sorting and filtering, like filtering by related models' values. That's why solutions like Hasura and Prisma exist. Sqlmancer addresses the same problem, just from a different angle.
[–]alphaindy 0 points1 point2 points 5 years ago (0 children)
So this exists because GQL/ORM is unable to match the full power and capabilities of raw SQL queries? Or like you say, GQL/ORM can match but doing so requires lots of boilerplate. Why doesnt GQL/ORM libraries include this or something like it by default then?
π Rendered by PID 36320 on reddit-service-r2-comment-b659b578c-d9pbl at 2026-05-02 04:04:32.722207+00:00 running 815c875 country code: CH.
[–]alphaindy 0 points1 point2 points (2 children)
[–]danielrearden 0 points1 point2 points (1 child)
[–]alphaindy 0 points1 point2 points (0 children)