mirror of
https://github.com/zhigang1992/apollo.git
synced 2026-05-12 16:33:00 +08:00
Update schema.md
I felt like the text saying to include schema stuff "inside the gql function" may not be quite clear enough for folks who haven't seen template strings or perhaps haven't seen template strings used as a function in that style.
This commit is contained in:
@@ -44,7 +44,7 @@ Let's think about the data we will need to expose in order to build our app. Our
|
||||
* Book launch trips if the user is logged in
|
||||
* Cancel launch trips if the user is logged in
|
||||
|
||||
Our schema will be based on these features. In `src/schema.js`, import `gql` from Apollo Server and create a variable called `typeDefs` for your schema. Your schema will go inside the `gql` function.
|
||||
Our schema will be based on these features. In `src/schema.js`, import `gql` from Apollo Server and create a variable called `typeDefs` for your schema. Your schema will go inside the `gql` function (between the backticks in this portion: <code>gql``</code>).
|
||||
|
||||
_src/schema.js_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user