Best of GraphQLDecember 2024

  1. 1
    Article
    Avatar of tdsTowards Data Science·1y

    How X (Twitter) Designed Its Home Timeline API: Lessons to Learn

    The post delves into the design aspects of X's (formerly Twitter) home timeline API, covering data fetching, response structure, and pagination. It explores the mixed use of REST, RPC, and GraphQL approaches, the handling of hierarchical data, and special entities like tweets, feedback actions, and cursors. The post also discusses sorting, tweet actions, and how tweet details are retrieved.

  2. 2
    Article
    Avatar of devtoDEV·1y

    The All-in-One Fake API for developers.

    FooApi is an emerging platform providing realistic dummy data for various categories like users, products, posts, comments, to-dos, images, movies, and geo-coordinates for cities and countries. Developers can access this data through REST endpoints and GraphQL queries to mock their projects and ideas. The project is still under development, and updates are periodically shared. Users can practice queries on the playground provided on the site.

  3. 3
    Article
    Avatar of communityCommunity Picks·1y

    Astronomy

    A collection of different page templates and example apps built with Astro v4.5, shadcn/ui, and React JS. The post covers templates for landing pages, changelogs, waitlists, pricing, about pages, and newsletters. It also includes example apps such as a static blog, documentation site, anime list, blog with database integration, ecommerce pages, and authentication implementation.

  4. 4
    Article
    Avatar of collectionsCollections·1y

    Understanding Popular API Architectural Styles and Protocols

    APIs enable communication between software systems, with various architectural styles such as SOAP, REST, GraphQL, Webhooks, WebSockets, and gRPC being utilized. SOAP offers reliability but is verbose; REST is flexible but can struggle with complex queries; GraphQL allows specific data requests; Webhooks offer real-time updates; WebSockets enable persistent communication; and gRPC provides high performance for cross-platform services. Understanding these styles and API types—Open, Partner, Internal, Composite—is crucial for developing scalable and efficient web applications.

  5. 5
    Article
    Avatar of wundergraphWunderGraph·1y

    I was wrong about GraphQL

    The author revisits and reassesses previous opinions on GraphQL based on current knowledge and experiences. Key insights include the importance of building on top of existing tools and patterns rather than introducing new ones, the organizational benefits of GraphQL Federation, and the evolution of best practices such as using persisted queries and APQ. The author also reflects on the practical challenges and benefits of GraphQL for large-scale enterprise applications, particularly in terms of caching, API design, and Subscriptions implementation.

  6. 6
    Article
    Avatar of wpWordPress·1y

    Using WordPress as a Data-Entry Site to Power a Central API

    WordPress, known for its robust content management capabilities, can also serve as a backend for central APIs, useful for applications like phone apps or browser extensions. This tutorial covers leveraging WordPress to create REST and GraphQL APIs for handling data entries like employees, teams, and offices. It includes steps for setting up a data-entry site, using custom post types and taxonomies, configuring access control, creating custom REST routes, and querying via GraphQL. Simplified UI and access control options ensure a clean, focused data maintenance experience.