From e3d3019c2e3c67be631661d892a3818a08c63bb8 Mon Sep 17 00:00:00 2001 From: Zhigang Fang Date: Fri, 30 Aug 2019 11:48:04 +0800 Subject: [PATCH] Remove unnecessary schema change Other it's very confusing on why this change is needed --- docs/source/tutorial/resolvers.md | 8 -------- 1 file changed, 8 deletions(-) diff --git a/docs/source/tutorial/resolvers.md b/docs/source/tutorial/resolvers.md index 79414d4..68f8b38 100644 --- a/docs/source/tutorial/resolvers.md +++ b/docs/source/tutorial/resolvers.md @@ -253,14 +253,6 @@ Mission: { }, ``` -_src/schema.js_ -```js - type Mission { - # ... with rest of schema - missionPatch(mission: String, size: PatchSize): String - } -``` - The first argument passed into our resolver is the parent, which refers to the mission object. The second argument is the size we pass to our `missionPatch` field, which we use to determine which property on the mission object we want our field to resolve to. Now that we know how to add resolvers on types other than `Query` and `Mission`, let's add some more resolvers to the `Launch` and `User` types. Copy this code into your resolver map: