Skip to main content

Get the Reddit app

Scan this QR code to download the app now
Or check it out in the app stores

GraphQL







Unpopular Opinion: REST > GraphQL
r/webdev icon
r/webdev
A banner for the subreddit

A community dedicated to all things web development: both front-end and back-end. For more design-related questions, try /r/web_design.


Members Online
Unpopular Opinion: REST > GraphQL

I don't expect many upvotes on this post as GraphQL advocates are very very passionate. In fact I've never seen someone advocate so strongly for REST as they do GraphQL. I'm still going to risk my Karma and say it, I prefer REST.

GraphQL is great at first. When I started working with GraphQL I thought it was amazing. I've even given conference sessions discussing GraphQL and the benefits it brings. At the time, I was only consuming GraphQL APIs. From a consumption standpoint, it does get benefits.

Running a GraphQL server brings a completely new perspective. This is why the pain points in the state of GraphQL report all revolve around performance, security, caching, etc. (https://2022.stateofgraphql.com/en-US/usage/#graphql_pain_points) which are all items that REST does very well.

I'm starting to think the best approach is to build APIs as REST, but then use something like Netlify Connect (https://www.netlify.com/products/connect/) to then allow front-end developers to choose GraphQL where desired.

https://www.youtube.com/watch?v=q2UKMecTwuI

I have also heard analysts and other professionals start calling out GraphQL as a niche solution. One that will stick around, but will not replace REST.

What is your opinion? Do you use GraphQL or REST or something else entirely?




Does GraphQL have a future?
r/webdev icon
r/webdev
A banner for the subreddit

A community dedicated to all things web development: both front-end and back-end. For more design-related questions, try /r/web_design.


Members Online
Does GraphQL have a future?

GraphQL was created by Facebook in 2012 for the sole purpose of improving performance on mobile wireless connections. The history is well known, with plenty of presentations from the creators.

In 2012 for the US the average home connection speed was 6.7Mbps, wireless connections (3g) maxed out at 1-3mbps download and less than 1 upload.

Today the average home connection is 119Mbps and mobile 23Mbps.

Mobile internet speeds are faster than home connections when GraphQL was invented. With GraphQL servers being significantly harder to optimize for performance and requests being more difficult to cache, I'm starting to question if GraphQL can still claim to be faster.

Add in the other issues DOS attacks exploiting query complexity, difficulties in securing data, and how much harder it is to host a GraphQL server, and I'm starting to worry about the future of the technology.

It's only one data point, but StackOverflow trends show a leveling off for GraphQL - https://insights.stackoverflow.com/trends?tags=graphql

I took the time to learn GraphQL and enjoy it as a technology. Since its creation, it's added other benefits beyond speed. So I'm asking the community, would you consider using GraphQL for a future project? Where do you see GraphQL going?



I'm not impressed by GraphQL and I still prefer REST.
r/webdev icon
r/webdev
A banner for the subreddit

A community dedicated to all things web development: both front-end and back-end. For more design-related questions, try /r/web_design.


Members Online
I'm not impressed by GraphQL and I still prefer REST.

Hi everyone

I have dabbled with GraphQL and used it for my portfolio website to see what all the hype is about. It allows you to fetch only the necessary data you need I get it. However, the challenge is that, when a new property is created on the backend. In such cases, I have to explicitly add that property to the query, for instance.:

    services(locale: $locale, pagination: { limit: 100 }) {
      data {
        attributes {
          title
          text
          showcase
          backgroundColor
          icon {
            name
            brands
          }
        }
      }
    }

I use Apollo. Makes me a bit frustrated that I have to rely on third party packages to implement Gql easier. With REST I only have to rely on built in fetch(). Let's say I have just added the "showcase" property in Strapi, which is a Headless CMS built on Node.js. I need to include that property in the query mentioned above as well. As a result, the query file becomes quite verbose, spanning over a thousand lines. The verbosity of GraphQL in this scenario has made me question whether using REST calls instead would have been a better option. Do you believe this issue can be solved while still using GraphQL? What do you think? You always need to put a new property inside the query every time you create new data on the backend. This isn't the case in REST, You just put

const response = await fetch('https://api.example.com/posts');
const data = await response.json();

and you get everything from posts automatically. Of course you should also consider error handling with try catch for example but the REST code above is minimum.

For Gql you have to write like this:

  const { data } = await client.query({
    query: GET_SERVICES,
    variables: { locale: [locale] },
  });

And afterwards you need to implement a query like mentioned above. And then who knows you need to change it constantly later on.

The main advantage of GraphQL I can think of is the ability to fetch data from a complex tree of nodes and relationships using a single network request.





The State of GraphQL in Go (2024)
r/golang icon
r/golang
A banner for the subreddit

Ask questions and post articles about the Go programming language and related tools, events etc.


Members Online
The State of GraphQL in Go (2024)

Hello guys, I'm a TypeScript developer and have been fascinated by the performance of Go with GraphQL. However, I noticed that the go-graphql library is not maintained. After some research, I tried using gqlgen, but I didn't like it—it felt cumbersome for creating an MVP. Are people still using GraphQL with Go? If so, how are you using it?



Phoenix + Absinthe + GraphQL
r/elixir icon
r/elixir

Subreddit for the Elixir programming language, a dynamic, functional language designed for building scalable and maintainable applications. Learn more at https://elixir-lang.org.


Members Online
Phoenix + Absinthe + GraphQL

I'm a newbie to Elixir and started learning the basic syntax. My company is using Elixir and Phoenix and I need to learn quick simultaneously phoenix + absinthe + graphQL. I have used various other programming language and web framework.

I cannot wait until I master Elixir to learn phoenix + absinthe + graphQL.

What are some of the best books or websites I can learn it fast track?


Best option for GraphQL today?
r/golang icon
r/golang
A banner for the subreddit

Ask questions and post articles about the Go programming language and related tools, events etc.


Members Online
Best option for GraphQL today?

I'm looking at revamping a side project. It's a GraphQL backend with React on the frontend, and I'm likely going to end up using Electron. I'm not sure what the modern version of Apollo is in Go nowadays. What would you recommend? Would prefer to do it with the more common option vs something new, if that makes sense. And yes, this project is partly to pad my resume.




Is GraphQL worth it?
r/computerscience icon
r/computerscience

The hot spot for CS on reddit.


Members Online
Is GraphQL worth it?

I'm at a large company in the retail space and theres no graphql being used yet in my organization. I want to know your guys' experience with it and if it's worth pursuing for a large enterprise, albeit it's not a tech-first org. I'm in a data API team and I have been working on understanding the data models in our data warehouse (snowflake) and existing APIs / use cases which serve data to various domains in the org. I have been reading that this client driven approach is better for intial proof of concepts, to bring those existing use cases and then to simplify and expand upon that dataset. Ultimately, a finished product would expose almost all data from the warehouse to be used by anyone authorized. and I feel that the answer to a lot of my question of is it worth it is "it depends", but I just want to hear from everyones' experience with graphql and see what I can learn from that.



Is GraphQL overkill with sveltekit?
r/sveltejs icon
r/sveltejs
A banner for the subreddit

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.


Members Online
Is GraphQL overkill with sveltekit?

I really like GraphQL, but is it worth it adding another layer to my sveltekit backend? Or should I just use some ORM (prisma) directly? I want to add native mobile apps too later, using the same api.



  • A place for interesting and informative GraphQL content and discussions. 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. 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). members
  • A community for discussing anything related to the React UI framework and its ecosystem. Join the Reactiflux Discord (reactiflux.com) for additional React discussion and help. members
  • Chat about javascript and javascript related projects. Yes, typescript counts. Please keep self promotion to a minimum/reasonable level. members
  • GraphQL latest news, tutorials, blogs, examples & product updates from GraphQL Editor dev team. members
  • Welcome to the Tyk GraphQL & API hangout afterparty. Continue the conversation about all things API and GraphQL here! members
  • members
  • Computer Programming members
  • A community dedicated to all things web development: both front-end and back-end. For more design-related questions, try /r/web_design. members
  • Ask questions and post articles about the Go programming language and related tools, events etc. 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 members
  • A place for all things related to the Rust programming language—an open-source systems language that emphasizes performance, reliability, and productivity. members
  • News and links for Django developers. members
  • TypeScript is a language for application-scale JavaScript development. TypeScript is a typed superset of JavaScript that compiles to plain JavaScript. members
  • .NET Community, if you are using C#, VB.NET, F#, or anything running with .NET... you are at the right place! members
  • members
  • Celebrate the weird and wonderful Ruby programming language with us! members
  • A subreddit for discussion and news about Ruby on Rails members
  • Open-source internal tool builder. Quickly build UIs for REST/ GraphQL APIs and databases, with a drag-and-drop interface and 50+ widgets. SUPPORT QUESTIONS? https://discord.com/invite/rBTTVJp https://www.appsmith.com members
  • Vue.js is a library for building interactive web interfaces. It provides data-reactive components with a simple and flexible API. members
  • The official Python community for Reddit! Stay up to date with the latest news, packages, and meta information relating to the Python programming language. --- If you have questions or are new to Python use r/LearnPython members
  • Weaviate is an open source vector database that stores both objects and vectors, allowing for combining vector search with structured filtering and CRUD operations. It supports modules such as creating embeddings or generating responses via OpenAI, and is accessible through GraphQL, REST, and various language clients. members
  • An open-source framework for building admins, ERPs and B2B apps on top of REST or GraphQL APIs. Built with React, TypeScript, react-router, material-ui, react-query, react-hook-form. Used by 25,000 companies worldwide. 24k stars on GitHub. members
  • Share and discover the latest news about the PHP ecosystem and its community. Please respect r/php's rules. 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. 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! members
  • A community for the publishing of news and discussion about Flutter. 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. 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. members