This repository contains a GraphQL server built using Apollo Server v4 and Express. It demonstrates basic GraphQL operations such as queries and mutations.
- Apollo Server v4 integration with Express.
- Basic GraphQL schema with queries and mutations.
- Separated files for type definitions and resolvers for better code organization.
Before running this application, make sure you have the following installed:
- Node.js
- npm (Node Package Manager)
-
Clone the repository:
git clone https://github.com/enniob/nodejsapollographql.git
-
Navigate to the project directory:
cd nodejsapollographql
-
Install dependencies:
npm install
- Start the server:
npm start
This will start the GraphQL server on http://localhost:4000
.
- Access the GraphQL playground in your web browser:
http://localhost:4000