Skip to content

Commit 884052c

Browse files
unicodeveloperpeggyrayzis
authored andcommitted
Add little details about the Query component
1 parent 3861340 commit 884052c

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

docs/source/tutorial/queries.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
---
22
title: "6. Fetch data with queries"
3-
description: Start here for the Apollo fullstack tutorial
3+
description: Learn how to fetch data with the Query component
44
---
55

6+
You have learned how to fetch data with Apollo Client. In this section, you'll deal with fetching more complex queries and binding the data to your UI using the `Query` component from `react-apollo`.
7+
68
<h2 id="query-component">What is a Query component?</h2>
79

10+
Fetching data in a simple, predictable and optimistic way is one of the core features of Apollo Client. `react-apollo`, a view layer integration for Apollo Client, exports a `Query` React component that allows you pass a GraphQL query string wrapped with the `gql` tag to a `query` prop.
11+
12+
The `Query` component uses the render prop pattern
13+
14+
815
<h2 id="fetch-data">Fetch data with Query</h2>
916

1017
<h2 id="pagination">Build a paginated list</h2>

0 commit comments

Comments
 (0)