Press J to jump to the feed. Press question mark to learn the rest of the keyboard shortcuts
Log In
Found the internet!
Posts
Communities

Posts about GraphQL

Subreddit Icon
r/graphql
19.7k members
A place for interesting and informative GraphQL content and discussions.
Visit
Subreddit Icon
r/thegraph
22.8k members
This is The Graph's official Reddit community. The Graph is the indexing and query layer of web3. Developers build and publish open APIs, called subgraphs, that applications can query using GraphQL. Indexing and querying data from blockchains via The Graph allows applications to efficiently and performantly integrate data into all of their product and protocol needs.
Visit
Subreddit Icon
r/Hasura
699 members
⚡️ Instant GraphQL APIs to build realtime apps & APIs. Connect Hasura to your database & other data sources (REST & GraphQL servers, 3rd party APIs) and get a unified data access layer instantly. https://hasura.io
Visit
Subreddit Icon
r/reactjs
350k members
A community for discussing anything related to the React UI framework and its ecosystem. Join the Reactiflux Discord ( https://www.reactiflux.com ) for additional React discussion and help.
Visit
Subreddit Icon
r/Nestjs_framework
6.9k members
Nest (or NestJS) is a framework for building efficient, scalable Node.js server-side applications. It uses progressive JavaScript, is built with and fully supports TypeScript (yet still enables developers to code in pure JavaScript) and combines elements of OOP (Object Oriented Programming), FP (Functional Programming), and FRP (Functional Reactive Programming).
Visit
Subreddit Icon
r/graphqleditor
36 members
GraphQL latest news, tutorials, blogs, examples & product updates from GraphQL Editor dev team.
Visit
Subreddit Icon
r/node
234k members
Welcome to r/node
Visit
Subreddit Icon
r/programming
5.5m members
Computer Programming
Visit
Subreddit Icon
r/apiafterparty
60 members
Welcome to the Tyk GraphQL & API hangout afterparty. Continue the conversation about all things API and GraphQL here!
Visit
Subreddit Icon
r/webdev
1.7m members
A community dedicated to all things web development: both front-end and back-end. For more design-related questions, try /r/web_design.
Visit
Subreddit Icon
r/golang
210k members
Ask questions and post articles about the Go programming language and related tools, events etc.
Visit
Subreddit Icon
r/django
113k members
News and links for Django developers.
Visit
Subreddit Icon
r/typescript
107k members
TypeScript is a language for application-scale JavaScript development. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.
Visit
Subreddit Icon
r/rust
241k members
A place for all things related to the Rust programming language—an open-source systems language that emphasizes performance, reliability, and productivity.
Visit
Subreddit Icon
r/ruby
80.2k members
[locked down for API protest] Celebrate the weird and wonderful Ruby programming language with us!
Visit
Subreddit Icon
r/dotnet
133k members
.NET Community, if you are using C#, VB.NET, F#, or anything running with .NET... you are at the right place!
Visit
Subreddit Icon
r/scala
50.6k members
Welcome to r/scala
Visit
Subreddit Icon
r/PHP
158k members
Share and discover the latest news about the PHP ecosystem and its community. Please respect r/php's rules.
Visit
Subreddit Icon
r/microapis
32 members
News, discussions, questions, and ideas about building and operating Microservices and APIs, including microservices deployments, testing, integrations, and design patterns, as well as types of APIs and protocols and documentation standards, such as REST, OpenAPI, Swagger, JSONSchema, RPC and its many variants, gRPC, SOAP, GraphQL, and many more!
Visit
Subreddit Icon
r/aws
242k members
News, articles and tools covering Amazon Web Services (AWS), including S3, EC2, SQS, RDS, DynamoDB, IAM, CloudFormation, AWS-CDK, Route 53, CloudFront, Lambda, VPC, Cloudwatch, Glacier and more.
Visit
Subreddit Icon
r/rails
57.6k members
[locked down for API protest] A subreddit for discussion and news about Ruby on Rails
Visit
r/WebDeveloperJobs
5.6k members
Jobs for JavaScript web developers who have experience with or want to learn new technologies such as: React.js, Redux, MobX, Angular 2 & 4, Vue.js, React Native, PhoneGap, Cordova, Ionic, Node.js, Express.js, GraphQL, Webpack, WebAssembly, Meteor.js, Socket.io, Babel, TypeScript, Yarn, NPM, Gulp.js, Grunt.js, WebGL. Also hiring for jobs related to: Lodash, Underscore, jQuery, Backbone.js, Ember.js, Mocha, Jasmine, Jest, Semantic UI and Bootstrap. For hire posts welcome.
Visit
Subreddit Icon
r/javascriptjobs
4.0k members
Jobs for JavaScript web developers who have experience with or want to learn new technologies such as: React.js, Redux, MobX, Angular 2 & 4, Vue.js, React Native, PhoneGap, Cordova, Ionic, Node.js, Express.js, GraphQL, Webpack, WebAssembly, Meteor.js, Socket.io, Babel, TypeScript, Yarn, NPM, Gulp.js, Grunt.js, WebGL. Also hiring for jobs related to: Lodash, Underscore, jQuery, Backbone.js, Ember.js, Mocha, Jasmine, Jest, Semantic UI and Bootstrap. For hire posts welcome.
Visit
Subreddit Icon
r/Clojure
31.2k members
Clojure is a dynamic, general-purpose programming language, combining the approachability and interactive development of a scripting language with an efficient and robust infrastructure for multithreaded programming.
Visit
Subreddit Icon
r/FFBraveExvius
85.1k members
Final Fantasy Brave Exvius is a free-to-play role-playing game developed by Alim and published by Square Enix for iOS and Android devices.
Visit
Subreddit Icon
r/Kotlin
70.0k members
Discussion about Kotlin, a statically typed programming language for the JVM, Android, JavaScript, and native.
Visit
Subreddit Icon
r/reactnative
106k members
A community for learning and developing native mobile applications using React Native by Facebook.
Visit
Subreddit Icon
r/sveltejs
25.2k members
Svelte is a radical new approach to building user interfaces. Whereas traditional frameworks like React and Vue do the bulk of their work in the browser, Svelte shifts that work into a compile step that happens when you build your app. Instead of using techniques like virtual DOM diffing, Svelte writes code that surgically updates the DOM when the state of your app changes.
Visit
Subreddit Icon
r/gatsbyjs
8.5k members
Gatsby is the fast and flexible framework that makes building websites with any CMS, API, or database fun again. Build and deploy headless websites that drive more traffic, convert better, and earn more revenue!
Visit
30
30
17 comments
91
91
20 comments
1.1k
1.1k
399 comments
109
Subreddit Icon
Posted by12 days ago
109
4 comments
23
Subreddit Icon
Posted by20 days ago
23
10 comments
14
Subreddit Icon
Posted by1 month ago

Hi,
probably you guys are already sick from this topic... but I can't seem to find any answers when just using the web search. All I find are some intro tutorials and some high-level marketing comparisons between REST and GraphQL.
Some Background: I've been working in software development for about 15 years and mainly worked with REST webservices (as backend developer)... currently I'm working on my first project using GraphQL... and it's somewhat hard to see the benefits for me...
And it is not my goal to shit on GraphQL or something like that... but maybe get some insights where I maybe got something wrong... or how other people are handling those things... in the real world... not in those entry-level articles one can find all over the internet.

There are many selling points for GraphQL that I found online... but for me, the most important are 2 of those... and I would like to share my experiences with those... as well as ask your take on them...

No under- / overfetching
Right now we use it mainly to provide data to our own frontend application... and therefore I don't get the benefit of no under-/overfetching... since I exactly know what I need anyways... and it's not like even if I would have more fields in the database that I would forward that just in case... even when the frontend doesn't need it... also usually it is not just passing through stuff from a database but there is typically business logic involved...
If we are talking about an API shared with clients outside of your team... I can actually see the benefit of this approach.
But to be honest... you could also implement a basic attribute filter or something for your rest service like ?filter=fieldname.
The ResoveField functionality seems to also lack in those regards... I couldn't find a way to share state between the "parent" and "child" of the ResolveField-Relationship other than via the return value of the parent. (Which is not optimal if you don't want the information to be accessible). Also, because it seems that you cannot really share state between your ResolveFields you will end up calling down-stream-services multiple times... for example to compute some business logic...
I see that GraphQL is trying to build something like SQL but the issue is... that databases don't have business logic in them... but this is encoded in the SQL itself... so what is the goal here? To just plain "expose" the database to the web using GraphQL and have the logic handled by the consumer client?


Get everything in a single request

That also sounds quite good at first. The only issue is.. that if you fetch too much in one single request… which means that the backend itself needs to reach out to various other systems to compile the response… this single request might take quite some time. Sometimes having multiple requests isn’t a bad thing at all. For example when displaying a page in a web application.

When loading everything in one request the minimal load time of the page would be the time of the slowest of the aggregated systems.

If you would do several requests then you could already start showing partial information while the slower requests are still being processed… this would result in a more snappy feeling experience for the user.

Again, I don't want to trash-talk GraphQL.. but I would really like to understand the idea better and how other people are using it in the real world. Those are actual issues that I'm currently facing in my project and I would be grateful to get some answers :-)

14
26 comments
12
12
6 comments
76
76
2 comments