Logo Awesome React

Awesome React

HowToGraphQL (React & Apollo) - Queries: Loading Links (3/10)

Learn how you can use GraphQL queries with Apollo Client to load data from a server and display it in your React components.

https://www.howtographql.com/react-apollo/2-queries-loading-links/

NOTE: The very last section of this video assumes that you have added two links to your Graphcool project through the Playground before. This is also explained in the written tutorial chapter here: https://www.howtographql.com/react-apollo/1-getting-started/

These are the mutations you can use for that:

mutation CreateGraphcoolLink {
createLink(
description: "The coolest GraphQL backend 😎",
url: "https://graph.cool") {
id
}
}

mutation CreateApolloLink {
createLink(
description: "The best GraphQL client",
url: "http://dev.apollodata.com/") {
id
}
}