<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>GraphQL on API Coding</title>
    <link>https://apicoding.com/tags/graphql/</link>
    <description>Recent content in GraphQL on API Coding</description>
    <generator>Hugo</generator>
    <language>en-us</language>
    <lastBuildDate>Mon, 02 Mar 2026 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://apicoding.com/tags/graphql/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>The GraphQL N&#43;1 Problem and How to Actually Fix It</title>
      <link>https://apicoding.com/2026/03/02/the-graphql-n-1-problem-and-how-to-actually-fix-it/</link>
      <pubDate>Mon, 02 Mar 2026 00:00:00 +0000</pubDate>
      <guid>https://apicoding.com/2026/03/02/the-graphql-n-1-problem-and-how-to-actually-fix-it/</guid>
      <description>&lt;p&gt;The N+1 query problem is the GraphQL performance issue that every team encounters and few solve completely before it causes a production incident. Its mechanics are straightforward. Its solutions are well-documented. Its persistence in production systems reflects the gap between understanding a problem and implementing a solution that holds under all the query patterns a flexible API allows.&lt;/p&gt;&#xA;&lt;p&gt;A GraphQL query that requests a list of posts and the author of each post produces, in a naive resolver implementation, one database query to fetch the posts and one database query per post to fetch each author. A query requesting 100 posts with their authors produces 101 database queries. A query requesting 1,000 posts produces 1,001. The number of database queries grows linearly with the number of items in the list — hence N+1, where N is the list length and 1 is the initial list query.&lt;/p&gt;</description>
    </item>
    <item>
      <title>REST vs GraphQL vs gRPC: The Honest Comparison</title>
      <link>https://apicoding.com/2025/09/08/rest-vs-graphql-vs-grpc-the-honest-comparison/</link>
      <pubDate>Mon, 08 Sep 2025 00:00:00 +0000</pubDate>
      <guid>https://apicoding.com/2025/09/08/rest-vs-graphql-vs-grpc-the-honest-comparison/</guid>
      <description>&lt;p&gt;The choice between REST, GraphQL, and gRPC is treated in most discussions as a question of technical preference when it is primarily a question of context. Each protocol was designed for a specific problem space. Each performs well in that space and poorly outside it. The comparison articles that declare one winner across all use cases are either selling something or have not operated all three at production scale.&lt;/p&gt;&#xA;&lt;p&gt;REST&amp;rsquo;s dominance in public API design is not accidental. The constraints it imposes — statelessness, uniform interface, resource-based addressing — map naturally to HTTP&amp;rsquo;s caching infrastructure, client library ecosystems, and the mental model that most developers already carry from web development. A REST API can be consumed with curl. It can be documented with OpenAPI. It can be cached at the edge. These properties have real operational value that architectural elegance alone cannot purchase.&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
