mirror of
https://github.com/zhigang1992/apollo.git
synced 2026-04-29 12:25:35 +08:00
Clarify appropriate location for schema code in tutorial
The existing documentation mentions that "_Your schema code will go inside the `gql` function,_" but I found that easy to miss and only informative in retrospect. This change adds another line immediately before the reader needs to know where the SDL code goes to help curb the confusion that I went through.
This commit is contained in:
@@ -60,7 +60,7 @@ module.exports = typeDefs;
|
||||
|
||||
We'll start with the **Query type**, which is the entry point into our schema that describes what data we can fetch.
|
||||
|
||||
The language we use to write our schema is GraphQL's schema definition language (SDL). If you've used TypeScript before, the syntax will look familiar. Copy the following code into `src/schema.js`.
|
||||
The language we use to write our schema is GraphQL's schema definition language (SDL). If you've used TypeScript before, the syntax will look familiar. Copy the following SDL code between the backticks where the `gql` function is invoked in `src/schema.js`
|
||||
|
||||
_src/schema.js_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user