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:
Raymond Camden
2019-02-05 12:12:56 -06:00
committed by GitHub
parent 32b7cef9ac
commit 4ecf6b850a

View File

@@ -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_