# Server Usage
If you enabled the GraphQL API Server, start it alongside the client:
npm run apollo
You can edit the files generated in the ./apollo-server folder:
schema.graphqlcontains the Schema written with the schema definition language.resolvers.jsdeclares the Apollo resolvers.context.jsallows injecting a context object into all the resolvers (third argument).mocks.jsdefines the custom resolvers used for mocking (more info).directives.jsdefines the custom schema directives (more info)).
The server will be automatically restarted when a change is detected.
To run the server only once, use this command:
npm run run-graphql-api
Updating vue-cli-plugin-apollo will also update the GraphQL Server service 👍