Jillian  Corwin

Jillian Corwin

1635087600

Apollo Optics is now available for GraphQL requests

Optics is something we're quite pleased of, and we hope you'll check it out! In only a few minutes, you can integrate Optics to your GraphQL app. To get started, go here, or if you have any questions, join us in optics on Apollo Slack.

#graphql 

What is GEEK

Buddha Community

Apollo Optics is now available for GraphQL requests
Delbert  Ferry

Delbert Ferry

1623292675

Apollo Optics and your GraphQL Server

As we move into a GraphQL-first world, it’s important to be able to understand not only what data you’re fetching, but also how it’s being fetched. Many people think of this as an after-thought, hoping that simply getting as much code as possible out as fast as possible will help them win over their competition.

However, this approach can be costly on many levels. First, your application’s end users will notice the clunkiness of your application. In addition, on your servers, fetching data the wrong way can create inefficiencies that cost you in CPU usage, memory leaks, and slow response times (not to mention your AWS bill skyrocketing through the roof). Not the type of growth you’re looking for, probably.

#graphql #graphql server #apollo optics

Jillian  Corwin

Jillian Corwin

1635087600

Apollo Optics is now available for GraphQL requests

Optics is something we're quite pleased of, and we hope you'll check it out! In only a few minutes, you can integrate Optics to your GraphQL app. To get started, go here, or if you have any questions, join us in optics on Apollo Slack.

#graphql 

Eleo Nona

Eleo Nona

1600219097

How to Build Apollo GraphQL Server From Scratch

What is GraphQL

GraphQL is a query language and a server-side runtime that is used to request data from the server. The first thing that comes to mind when hearing the term “query language” is SQL. Just as SQL is used for querying databases, GraphQL is a bit like SQL but for querying web APIs as it eliminates the need to repeatedly develop or change existing end-points. GraphQL also enables the client/front-end to retrieve exactly the data they have requested and no more. This means that, within a single request of GraphQL, you can traverse from the entry point to the related data (whereas in RESTful API you have to call multiple endpoints to fetch similar results).

The following example will help you to understand this better. Let us consider an object person which has the attributes name, age, email, and contactNumber. Suppose the front-end only needs the name and age of the person. If we design a REST API, the endpoint will look like api/persons, which will end up fetching all the fields for the person object. The issue arises here because there is no easy way to communicate that I am interested in some fields and not others (which causes REST API to over fetch the data).

#graphql #nodejs #apollo-server #graphql-apollo-server

Delbert  Ferry

Delbert Ferry

1622276694

Apollo interns on GraphQL Radio

Shadaj Laddad
Shadaj is a senior at Lynbrook High School, and has been programming for a long time. He’s been historically interested in Scala, but was working mostly in JavaScript during his internship. Here’s what he worked on:

  • Subscriptions tutorial: Shadaj continued the Full-stack GraphQL tutorial with two steps about subscriptions: [Server-side] and [client-side].
  • Apollo Cache API: He refactored Apollo Client internals to separate out the internal GraphQL cache implementation behind a clean API. In Apollo Client 2.0, the cache will be completely pluggable, so that people can integrate caches based on different technologies like MobX, and build new features like offline support.

#graphql #graphql radio #apollo

Delbert  Ferry

Delbert Ferry

1622282384

How We Built GraphQL Subscriptions with Apollo

A real-world example
At Scaphold, we manage a lot of infrastructure to make sure our customers’ APIs stay available and performant. One of our core features is a graphical schema designer that allows you to easily define the GraphQL schema that will come to define your Scaphold API. What you don’t see when playing around with our schema designer, however, is a complex migration system that makes sure your API’s database is always up to date and in adherence with your schema. When you make a migration to your schema, the machine that fields the migration request will make the necessary changes to your database so that your API stays in sync.

#graphql #graphql subscriptions #apollo