Apollo GraphQL Hooks - Querying Data
lessonDuration 5m 23sFree
In this video you'll learn how to create a new Apollo client in a React application & query for data from a GraphQL API using the Apollo GraphQL Hooks library.
Browse
Find courses, lessons, articles, talks, and podcasts.
270 results for "graphql"
Showing 49–72 · Page 3 of 12
lessonDuration 5m 23sFree
In this video you'll learn how to create a new Apollo client in a React application & query for data from a GraphQL API using the Apollo GraphQL Hooks library.
lessonDuration 2m 14sFree
While creating your GraphQL API with [hasura.io](hasura.io), queries, mutations and subscriptions are auto generated for you. In this video I show an API explorer tool inspired by https://github.com/OneGraph/graphiql-explorer that will help you to compose GraphQL queries by selecting what data you want to present or how you want to filter your queries. This tool is also available as stand alone tool at [https://graphiql-online.com](https://graphiql-online.com)
lessonDuration 1m 55sFree
In this video, I show you how to quickly get up and running testing AWS AppSync GraphQL APIs using the Amplify CLI
lessonDuration 2m 29sFree
In this lesson we are going to learn how to use Apollo Server 2.0 to create a GraphQL server from scratch and how to verify if the server behaves as expected by using GraphQL Playground.
lessonDuration 1m 30sFree
When developing locally, Gatsby includes a GraphQL explorer interface called GraphiQL that allows developers to test and query their GraphQL data. In this lesson, we'll learn how to find and use the GraphiQL interface so we can configure GraphQL queries to use with our Gatsby project.
lessonDuration 2m 16sFree
We take advantage of Netlify Identity and Apollo client links to pass the user's Bearer token to the GraphQL API running on Netlify functions. This allows us to implement access control on the server using the user object passed in from the Identity service.
lessonDuration 55sFree
One of the first major companies to launch a public GraphQL API was GitHub. In this lesson, we'll send queries to the [GitHub API](https://developer.github.com/v4/explorer/) to view our own data, and we'll get acquainted with some of the core features of the GraphQL query language.
lessonDuration 5m 28sFree
When adopting GraphQL, one of the easiest ways to get started is to put a GraphQL API in front of your existing REST API endpoints. In this video, I'll walk through how to create a GraphQL API using existing REST APIs.
lessonDuration 2m 56sFree
In this lesson, we'll our TakeShape CMS project to update the content of our Gatsby website. We'll walk through adding a new content scheme in TakeShape, adding the content to that page scheme, and using GraphQL to query our new content to create a new page in Gatsby.
lessonDuration 1m 56s
In theory it's quite easy to dynamically generate queries at runtime based on a parameter, but not a lot of GraphQL clients handle it well. It's not so much about the clients, but all the tooling around it like generators, editor integrations and the opportunity to leverage persistent queries. Using plural instead of singular arguments will allow your clients to use static queries for situations where they usually would need dynamic ones.
lessonDuration 56sFree
With GraphQL, every field and nested object can have a set of arguments which can be used to request very specific data from a GraphQL API. In this lesson, we will pass arguments to the [GitHub API](https://developer.github.com/v4/explorer/) inline and as query variables.
lessonDuration 6m 21sFree
FaunaDB has native support for a GraphQL API backed by FQL. In this video we'll cover the limitations, importing a GraphQL schema, and executing our first mutations and queries. ```graphql type Todo { title: String! completed: Boolean } type Query { allTodos: [Todo!] todosByCompletedFlag(completed: Boolean!): [Todo!] } ``` ```graphql mutation CreateTodo { createTodo(data: { title: "Finish Video on GraphQL" }) { _id completed } } ``` ```graphql mutation CreateTodo { createTodo(data: { title: "Add Second Todo", completed: false }) { _id completed } } ``` ```graphql mutation UpdateTodo { updateTodo ( id: "245273222698762765" data: { title: "A Different Todo", completed: false }) { title completed } } ``` ```graphql query AllTodosQuery { allTodos { data { _id title completed } } } ``` ```graphql query AllTodosQuery { todosByCompletedFlag(completed: false) { data { _id title } } } ```
lessonDuration 7m 35sFree
Here we take a working client side app and a working GraphQL server and replace the client side logic with network calls to the GraphQL API. We also cover common pitfalls like adding CORS headers to the graphql server
lessonDuration 1m 53s
Mutations are another type of GraphQL operation that are similar to queries, but they are used when you need to change any data on the backend. In this lesson, we will send mutations to register new users. To follow along with these queries, go to the [Pet Library GraphQL Playground](https://pet-library.moonhighway.com).
lessonDuration 1m 24s
Once logged in, the user will be able to check out pets with a checkOut mutation. In this lesson, we’ll look at how to send a mutation based on current data. To follow along with these queries, go to the [Pet Library GraphQL Playground](https://pet-library.moonhighway.com).
lessonDuration 1m 25s
One of the most useful features of a GraphQL query is that you can collect data about multiple types in one request. In this video, we'll look at how to use nested fields to gather data about the Customer type and the Pet type. To follow along with these queries, go to the [Pet Library GraphQL Playground](https://pet-library.moonhighway.com).
lessonDuration 1m 11s
If there are multiple GraphQL queries in the same query document, you need to give the query an operation name. In this lesson, we’ll show how to get around anonymous operation errors with operation names. To follow along with these queries, go to the [Pet Library GraphQL Playground](https://pet-library.moonhighway.com).
lessonDuration 9m 45sFree
In this video you'll learn how to create a new Apollo client in a React application & send mutations to a GraphQL API using the Apollo GraphQL Hooks library.
lessonDuration 5m 30sFree
In this video I show you how to test three types of GraphQL APIs: Basic, querying on custom index, and group-based authorization.
lessonDuration 7m 35sFree
In this video you'll learn how to deploy an Apollo GraphQL server running in a Lambda function on AWS using AWS Amplify and connect to it from a React application using Apollo Hooks.
lessonDuration 50s
In addition to returning lists or scalar values, it’s possible to return GraphQL objects from fields. In this lesson, we’ll take a closer look at the `Photo` type and how it can be used to store more complex data types. To follow along with these queries, go to the [Pet Library GraphQL Playground](https://pet-library.moonhighway.com).
lessonDuration 3m 7s
Naming variations can easily be solved by postfixing the name with the variation. This though can quickly lead to a bloated schema, which we want to avoid. On the contrary by using arguments our schema becomes less flexible. In such cases GraphQL Aliases become a vital element to enable developers to do the same things as with multiple fields, but without any of the downsides.
lessonDuration 6m 17sFree
We take a set of DynamoDB queries that insert, update, and query for TODOs and replace the entire backend of our GraphQL API which is currently using FaunaDB. We cover DynamoDB operation ReturnValues for put, update, and query operations, implementing transformer functions to coordinate the stored representation in DynamoDB with your business objects, and then we get into Netlify. Netlify's environment variables don't allow us to use AWS_ACCESS_KEY_ID as an environment variable name. Once we fix that, we set up a pull request on GitHub, which results in a Deploy Preview that includes our new GraphQL function deployment!
lessonDuration 2m 12s
While it's certainly possible to version a GraphQL Schema, it's common practice to not do so. That's fine when just adding new queries or fields, but now and then we want to change a type or remove a field. Leveraging multiple deploys and deprecations we can make breaking changes in a GraphQL schema without affecting a single user. In this lesson we use one field renaming example to walk through such a multi-step process.