Skip to content

Commit 3278113

Browse files
author
Yury
authored
Update index.html.js
remove comments and string concat with `${}`
1 parent be957b8 commit 3278113

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

site/code/index.html.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ A set of GraphQL server packages from Apollo that work with various Node.js HTTP
266266
To run a hello world server with apollo-server-express:
267267
268268
\`\`\`bash
269-
npm install apollo-server-express express graphql
269+
npm install apollo-server-express express
270270
\`\`\`
271271
272272
Then run \`node server.js\` with this code in \`server.js\`:
@@ -275,14 +275,12 @@ Then run \`node server.js\` with this code in \`server.js\`:
275275
const express = require('express');
276276
const { ApolloServer, gql } = require('apollo-server-express');
277277
278-
// Construct a schema, using GraphQL schema language
279278
const typeDefs = gql\`
280279
type Query {
281280
hello: String
282281
}
283282
\`;
284283
285-
// Provide resolver functions for your schema fields
286284
const resolvers = {
287285
Query: {
288286
hello: () => 'Hello world!',
@@ -295,7 +293,7 @@ const app = express();
295293
server.applyMiddleware({ app });
296294
297295
app.listen({ port: 4000 }, () =>
298-
console.log(\`🚀 Now browse to http://localhost:4000${server.graphqlPath}\`)
296+
console.log('Now browse to http://localhost:4000' + server.graphqlPath)
299297
);
300298
\`\`\`
301299

0 commit comments

Comments
 (0)