graphql

Recent in

graphql

These GraphQL Directives Are Overkill
web-development

These GraphQL Directives Are Overkill

https://hackernoon.com

I was a big fan and advocate of GraphQL's `@defer` and `@stream` directives. I've added support for TypeScript Operations to WunderGraph, including support for Subscriptions through Async Generators.

Stefan AvramFeb 24, 2023
What’s Wrong With GraphQL?
graphql

What’s Wrong With GraphQL?

https://hackernoon.com

GraphQL can add some overhead to your API requests, as each request needs to be parsed and validated before it can be executed. Nullable types are a common issue when working with GraphQL for C# developers. You can use nullable types in your GraphQL schema to indicate that a field can be null.

Sergei TcvetkovFeb 21, 2023
Hiding Your API Credentials Client Side Using a Proxy Server in React
graphql

Hiding Your API Credentials Client Side Using a Proxy Server in React

https://hackernoon.com

The library `http-proxy-middleware is a great tool to use when you want to proxy requests to an API. It only takes a couple of lines of code to set up and use, and it's very flexible. When you use this client in your React application to send requests to a GraphQL API, React will execute the request on the client side.

Roy DerksNov 17, 2022
Data Loaders in a GraphQL Server
graphql

Data Loaders in a GraphQL Server

https://hackernoon.com

Using data loaders is the best approach for optimizing a GraphQL server. Queries and mutations can be handled more easily, and subscriptions require some additional work. Each HTTP request requires a separate set of data loader instances.

Uroš AnđelićDec 28, 2022
The New Next.js and SWR Clients: What You Need to Know
A Guide to Composing and Integrating APIs Together
programming

A Guide to Composing and Integrating APIs Together

https://hackernoon.com

React/Next.js is a way of turning some notion of ‘state’ into DOM, with a focus on composability — using smaller things to build bigger things. The most scalable UI in the world would be nothing without data to display. Here, then, is the other half: working with APIs, databases, and microservices.

Stefan AvramDec 17, 2022
Building a GraphQL eCommerce App from Scratch
strapi

Building a GraphQL eCommerce App from Scratch

https://hackernoon.com

A survey by Accenture found that 47% of online shoppers would actually consider paying more - if they were provided with an eCommerce experience that exceeded expectations.

Stefan AvramDec 6, 2022
How to Add GraphQL Wrapper Over REST API
csharp

How to Add GraphQL Wrapper Over REST API

https://hackernoon.com

The problem of generating helpful documentation and help pages for Web APIs is solved with swagger. Now.Net project is by default enabled with Swagger, as shown on the localhost URL. The problem is to generate helpful documentation for Web.Net Web API pages. Swagger.Net allows you to ask for what you want in a single query, save bandwidth, and reduce requests. The following steps are followed by the NSwag tool and a GraphQL wrapper for GraphQL.

Sukhpinder SinghNov 16, 2022
GraphQL Is Not a Silver Bullet
terraform

GraphQL Is Not a Silver Bullet

https://hackernoon.com

GraphQL is probably the best language to "Query" pre-defined object trees. It's not really a Graph Database Query Language, like Cypher, but we still love it. The language is just too limited to be used as a configuration language. GraphQL, by default, has no support for imports. Directives are great when used with GraphQL Operations, but quickly turn a GraphQL Schema into a mess when used for configuration.

Stefan AvramOct 18, 2022
Newsletter

Let's keep in touch

Benefit from a weekly updates, coding challenges and helpful resources around software development.

Your privacy is important to us. We promise not to send you spam!