Home / Companies / Nhost / Blog / July 2022

July 2022 Summaries

3 posts from Nhost

Filter
Month: Year:
Post Summaries Back to Blog
GraphQL Code Generator significantly enhances the development workflow when using GraphQL with React, React Query v4, and TypeScript by generating typed queries, mutations, and subscriptions, resulting in up-to-date typings and autocompletion in the code. The setup involves installing necessary npm packages, creating a configuration file to specify GraphQL API details, and adding a script in package.json to run the code generator. By integrating with tools like VS Code, developers can benefit from autocompletion and error reduction while coding. The blog post provides a detailed walkthrough for implementing this setup, including creating a GraphQL client and using React Query for data fetching in a Todo App example. With this approach, developers can achieve type-safety and robustness, minimizing errors across the stack from the database to the frontend, ultimately leading to more reliable applications.
Jul 19, 2022 2,198 words in the original blog post.
GraphQL Code Generator is a powerful tool that enhances the development of GraphQL applications by automating the generation of type-safe queries, mutations, and subscriptions, particularly when using React, Apollo Client, and TypeScript. By setting up the GraphQL Code Generator in three steps—installing necessary npm packages, creating a configuration file, and adding a script to package.json—developers can ensure accurate typings and autocompletion, significantly improving development workflow and reducing errors. The blog post demonstrates how to integrate these tools in a Todo App with Hasura as the backend, utilizing the GraphQL Code Generator to automatically produce types in response to changes in the GraphQL API or files. This setup enhances type safety from the database through to the frontend, catching potential errors early in the development process, as seen in examples where TypeScript flags nonexistent properties or incorrect operations on fields. The blog also provides an overview of how to perform GraphQL queries and mutations using Apollo Client, showcasing how this integration leads to more robust applications with fewer bugs, and concludes with a GitHub repository link containing the example code.
Jul 04, 2022 2,014 words in the original blog post.
In June 2022, Nhost introduced several updates to enhance their platform, including the launch of Nhost CDN to significantly speed up data delivery by caching files at the edge, resulting in speed increases up to 104 times. A new app domain structure was implemented to support the CDN, with existing and new applications encouraged to adopt this structure. Nhost also previewed a data browser for reading and sorting database data and a GraphQL Playground for testing queries and mutations. New React hooks were introduced for more precise control over file uploads, and serverless functions became available with Docker, allowing for broader deployment of the Nhost stack. Additionally, Nhost announced sponsorship of the pnpm package manager, began work on a Stripe integration, and released UML diagrams for authentication workflows. Community engagement was highlighted through active discussions on GitHub and Discord, along with several YouTube tutorials and project showcases centered around using Nhost with various technologies.
Jul 01, 2022 945 words in the original blog post.