diff --git a/manuals/step-1-basic-graphql.md b/manuals/step-1-basic-graphql.md index f330e2a..0e53c75 100644 --- a/manuals/step-1-basic-graphql.md +++ b/manuals/step-1-basic-graphql.md @@ -18,7 +18,7 @@ Queries - Go into github’s graphiql and run some queries - https://developer.g node { login name - avatarURL(size: 100) + avatarUrl(size: 100) } } } @@ -140,4 +140,10 @@ Cool we've succesfully queried and mutated data on a GraphQL API server. Let's t ...userFields } } + + fragment userFields on User { + name + bio + } + ``` diff --git a/server/index.js b/server/index.js index 5381527..9cc61de 100644 --- a/server/index.js +++ b/server/index.js @@ -6,8 +6,7 @@ const { graphqlExpress, graphiqlExpress } = require('graphql-server-express'); const { Schema } = require('./schema'); const { GithubConnector } = require('./github-connector'); -const GITHUB_LOGIN = 'davidyaha'; -const GITHUB_ACCESS_TOKEN = 'sjkafdhjkh32098097halskdjhf'; +const { GITHUB_LOGIN = 'davidyaha', GITHUB_ACCESS_TOKEN = 'sjkafdhjkh32098097halskdjhf' } = process.env; const app = express();