Skip to content

Instantly share code, notes, and snippets.

@foster55f
Last active March 2, 2020 15:39
Show Gist options
  • Save foster55f/f29d77cd655957f6e8de33d3e6f701e0 to your computer and use it in GitHub Desktop.
Save foster55f/f29d77cd655957f6e8de33d3e6f701e0 to your computer and use it in GitHub Desktop.
My Differentiation topic focuses on Apollo Front End Client. I researched the reasons why I would need to use
Apollo for GraphQL in the Front End. We used GraphQL on our final project and we were able to access GraphQL with queries
from a singular endpoint but Apollo Client is supposed to make this process more efficient and easier.
GraphQL allows you to define how you want to fetch your data
GraphL is a language for querying data. With GraphQL, your existing services describe the data that they have,
and clients describe the data they need. This is possible because of a strongly-typed schema.
The simplest way to get started with implementing GraphQL is with the Apollo platform. The Apollo platform
includes all the tools needed to get started, including a production-ready GraphQL server, a fully-featured
schema management and monitoring tool, Apollo Graph Manager, and a client that manages local and remote data in your apps.
Apollo client is most commonly used with React. Apollo CLient is a data management tool for any client. It's view
layer agnostic which means it can integrate with React, Vue, Angular, or vanilla JavaScript. You need to wrap your entire app in an Apollo Provider similar to Redux and now all components have
access to Apollo. Apollo will give me the ability to batch queries, which gives me the ability to put 2 queries into 1
request. We can also attach a query to a React component so that it receives query data as props.
I plan to implement a React Project on Menu reviews at Restaurants and want to use GraphQL and apollo client to be able to speak on it
at future interviews. I'm looking forward to being able to speak more about frameworks used in backend and front end in my projects.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment