mirror of
https://github.com/zhigang1992/apollo.git
synced 2026-04-29 12:25:35 +08:00
Edited the structure, added page on resolvers
This commit is contained in:
@@ -10,6 +10,7 @@ sidebar_categories:
|
||||
- tutorial/introduction
|
||||
- tutorial/schema
|
||||
- tutorial/data-source
|
||||
- tutorial/resolvers
|
||||
- tutorial/production
|
||||
- tutorial/client
|
||||
- tutorial/queries
|
||||
|
||||
@@ -1,18 +1,10 @@
|
||||
---
|
||||
title: Welcome
|
||||
description: Start here to learn how to use the Apollo platform.
|
||||
description: Start here to learn about the Apollo platform
|
||||
---
|
||||
|
||||
<div class="docstart" align="center">
|
||||
|
||||
<div class="pop-banner">
|
||||
<div class="pb-content pb-early-access">Early Access</div>
|
||||
<div class="pb-content pb-head">Interested in running GraphQL on the edge?</div>
|
||||
<div class="pb-content pb-link">
|
||||
<a href="/edge">Sign up to try Apollo Server on Cloudflare.</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="fundamentals">
|
||||
<div align="center">
|
||||
<a href="./fundamentals/platform.html">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "4. Connect your API to a client"
|
||||
title: "5. Connect your API to a client"
|
||||
description: Start here for the Apollo fullstack tutorial
|
||||
---
|
||||
|
||||
@@ -7,4 +7,6 @@ description: Start here for the Apollo fullstack tutorial
|
||||
|
||||
<h2 id="apollo-client-setup">Create an Apollo Client</h2>
|
||||
|
||||
<h2 id="apollo-client-setup">Make your first query</h2>
|
||||
|
||||
<h2 id="react-apollo">Connect your client to React</h2>
|
||||
@@ -3,14 +3,6 @@ title: "2. Hook up your data sources"
|
||||
description: Start here for the Apollo fullstack tutorial
|
||||
---
|
||||
|
||||
<h2 id="data-source">What is a data source?</h2>
|
||||
|
||||
<h2 id="rest-api">Connect a REST API</h2>
|
||||
|
||||
<h2 id="database">Connect a database</h2>
|
||||
|
||||
<h2 id="resolvers">Call your data sources in resolvers</h2>
|
||||
|
||||
<h2 id="write-query">Write a query in the playground</h2>
|
||||
|
||||
<h2 id="test-resolvers">Test your graph</h2>
|
||||
<h2 id="database">Connect a database</h2>
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "7. Manage local state"
|
||||
title: "8. Manage local state"
|
||||
description: Start here for the Apollo fullstack tutorial
|
||||
---
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "6. Update data with mutations"
|
||||
title: "7. Update data with mutations"
|
||||
description: Start here for the Apollo fullstack tutorial
|
||||
---
|
||||
|
||||
|
||||
@@ -1,12 +1,10 @@
|
||||
---
|
||||
title: "3. Run your graph in production"
|
||||
title: "4. Run your graph in production"
|
||||
description: Start here for the Apollo fullstack tutorial
|
||||
---
|
||||
|
||||
<h2 id="authentication">Authenticate users</h2>
|
||||
<h2 id="publish-schema">Publish your schema to Engine</h2>
|
||||
|
||||
<h2 id="write-schema">Publish your schema to Engine</h2>
|
||||
<h2 id="deploy">Deploy your graph API</h2>
|
||||
|
||||
<h2 id="ci-workflow">Integrate your CI workflow</h2>
|
||||
|
||||
<h2 id="deploy">Deploy your graph API</h2>
|
||||
<h2 id="monitoring">Monitor your graph's performance</h2>
|
||||
@@ -1,5 +1,5 @@
|
||||
---
|
||||
title: "5. Fetch data with queries"
|
||||
title: "6. Fetch data with queries"
|
||||
description: Start here for the Apollo fullstack tutorial
|
||||
---
|
||||
|
||||
|
||||
12
docs/source/tutorial/resolvers.md
Normal file
12
docs/source/tutorial/resolvers.md
Normal file
@@ -0,0 +1,12 @@
|
||||
---
|
||||
title: "3. Write your graph's resolvers"
|
||||
description: Start here for the Apollo fullstack tutorial
|
||||
---
|
||||
|
||||
<h2 id="data-sources">Call your data sources in resolvers</h2>
|
||||
|
||||
<h2 id="write-query">Write a query in the playground</h2>
|
||||
|
||||
<h2 id="authentication">Authenticate users</h2>
|
||||
|
||||
<h2 id="testing">Test your graph</h2>
|
||||
@@ -3,10 +3,8 @@ title: "1. Build a schema"
|
||||
description: Start here for the Apollo fullstack tutorial
|
||||
---
|
||||
|
||||
<h2 id="apollo-server-setup">Set up Apollo Server</h2>
|
||||
<h2 id="setup">Set up Apollo Server</h2>
|
||||
|
||||
<h2 id="write-schema">Write your graph's schema</h2>
|
||||
<h2 id="write">Write your graph's schema</h2>
|
||||
|
||||
<h2 id="design-schema">Schema design principles</h2>
|
||||
|
||||
<h2 id="apollo-server-run">Run your server</h2>
|
||||
<h2 id="run">Run your server</h2>
|
||||
Reference in New Issue
Block a user