Introdução Nesse artigo será apresentado como configurar uma app React para requisições graphQL, para isso será usado a lib APolloClient. A ideia é apresentar como configurar a app e um exemplo de como realizar as requisições.
Is this you? As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.
Claim your profile
Articles by Apollo Provider
Setup Apollo Client for graphQL requests in React
Introduction This article will demonstrate how to set up a React app for graphQL requests using the ApolloClient library. The goal is to show how to configure the app and provide an example of how to make requests.
Integrating Apollo Client with React and TypeScript: A Step-by-Step Guide
To load Apollo GraphQL in a React TypeScript (TSX) application, you can follow these detailed steps: If you don’t have a React TypeScript project, you can create one using: npx create-react-app your-app-name --template typescript cd your-app-name Install the necessary Apollo Client packages and GraphQL: yarn add @apollo/client graphql This command installs the Apollo Client library and graphql, which is required to parse GraphQL queries.
Enhancing React Applications with GraphQL Over REST APIs
In the rapidly changing world of web development, optimizing and scaling applications is always an issue. React.js had an extraordinary success for frontend development as a tool, that provides a robust way to create user interfaces. But it gets complicated with growing applications, especially when it comes to multiple REST API endpoints. Concerns such as over-fetching, where excessive data than required can be a source of performance bottleneck and a poor user experience.
Boost Your React Development with GraphQL and Codegen
In modern web development, GraphQL has become a popular choice for API interactions, especially when working with complex and flexible data needs. Its ability to fetch exactly what you want — no more, no less — makes it a perfect match for the highly modular and component-driven architecture of React. But while GraphQL provides powerful flexibility, it can also introduce the risk of errors, especially when your queries are not in sync with the schema.
Containerize your multi-services app with docker compose
This article was posted first on my personal blog mariusniemet.me In this previous article, we learned what a container is and took a brief introduction by learning how to create an image and then run a container, it was a good starting point. But with the new industry standard most of the time you will work on apps made by multiple services that have dependencies between them, frontend, backend, database, caching, queue, and so on.
Build a Secure E-Commerce App with SuperTokens and Hasura GraphQL
This tutorial will show you how to develop a secure e-commerce store using SuperTokens authentication in a React.js App. We'll use a modern stack that includes React, Hasura GraphQL, and SuperTokens. The source code for the App we're working on is available to view here. By learning how to combine all of these features, you should be able to apply what you've learned here to create your ideas.
Bootstrapping the Authentication Layer and Server With Auth0.js and Hasura
Key Takeaways Auth0 is a secure authentication platform that's easy to set up and provides features like SSO integration, cloud functions, and user management. Hasura is a GraphQL engine for PostgreSQL that provides tools for rapid development. Hasura has both on-premise and cloud solutions. Using Hasura and Auth0, you can bootstrap your authentication layer and save yourself days, if not weeks, of development time.
Show More
loading
Actions
Is this you?
As a journalist, you can create a free Muck Rack account to customize your profile, list your contact preferences, and upload a portfolio of your best work.Get in touch with Apollo
Contact Apollo, search articles and posts on X, monitor coverage, and track replies from one place.
Learn more about Muck Rack