mirror of
https://github.com/vale981/apollo-server
synced 2025-03-06 10:11:40 -05:00

* Add 1.0 migration article, belated * Add tracing + cache control to sidebar * Suggest graphql-tools * Link to graphql-tools in README * Wording * Try a new title * Add example to top
1,014 B
1,014 B
title | description |
---|---|
Migrating to v1.0 | How to migrate to Apollo Server 1.0 |
In July of 2017, we announced the release of Apollo Server 1.0. This was not a major change, except for one thing: All of the packages have been renamed from graphql-server-*
to apollo-server-*
.
All of the options, names, and API are identical to pre-1.0 versions.
So, if before you were doing:
import { graphqlExpress, graphiqlExpress } from 'graphql-server-express';
Now, you should do:
import { graphqlExpress, graphiqlExpress } from 'apollo-server-express';
We made this change because it was consistent with how developers in the community were referring to the package. With the graphql-server
name, we wanted to emphasize that this package works with any GraphQL technology, but people called it "Apollo Server" anyway, so we decided that was a good name to use officially as well.