To run individual test files, run npm run pretest & npx jest packages/apollo-server-foo/src/_tests_/.
Install the Apollo Server project on your computerĭirenv allow # sets up nvm for you if you installed nvm yourself, try `nvm install` instead We use nvm to ensure we're running the expected version of Node (and we use Direnv to install and run nvm automatically). Install Direnv (a tool that automatically sets up environment variables in project directories) or nvm. If you wish to develop or contribute to Apollo Server, we suggest the following: The raw Markdown source of the documentation is available within the docs/ directory of this monorepo-to contribute, please use the Edit on GitHub buttons at the bottom of each page.
The Apollo Server documentation contains additional details on how to get started with GraphQL and Apollo Server. resolvers):Ĭonst server = new ApolloServer ( ) Documentation Then, create an index.js which defines the schema and its functionality (i.e. In a new project, install the apollo-server and graphql dependencies using: npm install apollo-server graphql express, koa, hapi, etc.), use the appropriate Apollo Server integration package.įor more info, please refer to the Apollo Server docs.