Skip to content

Commit 463fe83

Browse files
ericvangeemwincent
authored andcommitted
Apollo Server renamed to GraphQL Server as of v0.4 (graphql#242)
From http://dev.apollodata.com/tools/graphql-server/migration-graphql-server.html : In version 0.4, Apollo Server has been renamed to GraphQL Server, to reduce confusion about its compatibility with other GraphQL-related packages and tools. In particular, the goal is to ensure people don’t get confused that Apollo Client only works with Apollo Server and the other way around.
1 parent 5a6f608 commit 463fe83

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

site/code/index.html.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -87,22 +87,22 @@ app.use('/graphql', graphqlHTTP({
8787
app.listen(4000, () => console.log('Now browse to localhost:4000/graphql'));
8888
\`\`\`
8989
90-
#### [Apollo Server](http://dev.apollodata.com/tools/apollo-server/index.html) ([github](https://github.com/apollostack/apollo-server)) ([npm](https://www.npmjs.com/package/apollo-server))
90+
#### [graphql-server](http://dev.apollodata.com/tools/graphql-server/index.html) ([github](https://github.com/apollostack/graphql-server)) ([npm](https://www.npmjs.com/package/graphql-server))
9191
92-
A GraphQL server that works with Node.js.
92+
A set of GraphQL server packages from Apollo that work with various Node.js HTTP frameworks (Express, Connect, Hapi, Koa etc).
9393
94-
To run a hello world server with Apollo Server:
94+
To run a hello world server with graphql-server-express:
9595
9696
\`\`\`bash
97-
npm install apollo-server body-parser express graphql graphql-tools
97+
npm install graphql-server-express body-parser express graphql graphql-tools
9898
\`\`\`
9999
100100
Then run \`node server.js\` with this code in \`server.js\`:
101101
102102
\`\`\`js
103103
var express = require('express');
104104
var bodyParser = require('body-parser');
105-
var { apolloExpress, graphiqlExpress } = require('apollo-server');
105+
var { graphqlExpress, graphiqlExpress } = require('graphql-server-express');
106106
var { makeExecutableSchema } = require('graphql-tools');
107107
108108
var typeDefs = [\`
@@ -124,12 +124,12 @@ var resolvers = {
124124
125125
var schema = makeExecutableSchema({typeDefs, resolvers});
126126
var app = express();
127-
app.use('/graphql', bodyParser.json(), apolloExpress({schema}));
127+
app.use('/graphql', bodyParser.json(), graphqlExpress({schema}));
128128
app.use('/graphiql', graphiqlExpress({endpointURL: '/graphql'}));
129129
app.listen(4000, () => console.log('Now browse to localhost:4000/graphiql'));
130130
\`\`\`
131131
132-
Apollo Server also supports all Node.js HTTP server frameworks: Express, Connect, HAPI and Koa.
132+
GraphQL Server also supports all Node.js HTTP server frameworks: Express, Connect, HAPI and Koa.
133133
134134
### Ruby
135135

0 commit comments

Comments
 (0)