This project is a POC of a .NET GraphQL Server written in C#.
The implementations is done with Hot Chocolate library. The server expose different methods to query and mutate data in a Mongo Database containing a Todo list collection.
To build run the project you need to have a MongoDb istance running on your computer. In order to do that if you have installed Docker on your machine you can use the docker-compose in this repository:
- Clone the repo
- Run MongoDb with Docker
cd graphql-dotnet-server docker compose up -d
Then you can run the project:
- Open the solution with Visual Studio or Visual Studio Code and run the project
- On http://localhost:5070/graphql/ you should see a page like this: