You must have installed in your machine:
- MongoDb: versione >= 4.0. The project works with DB on port 27017, not authenticated
- .NET: version 6+
- VS code
This introduction is structured in progressive steps. Each of the steps is managed on a separate branch which includes the previous steps; in this way it is possible to follow the steps of the guide by advancing in the numbered branches and following the notes present in the linked wiki.
The guide wants to be a gentle introduction to the use of GraphQL with .NET framework. In my learning path I have decided to limit the scope of my research/study focusing exclusively on research capabilities and functionalities; for this reason I do NOT deal with issues related to Mutations or Subscriptions or other topics at all. In this intro I will cover:
- an overview of what GraphQL is and its specifications
- how to use GraphQL to read data in databases (MongoDb in particular)
- how to implement useful aspects for the execution in production, such as eg. Security, Monitoring and Caching
- how to allow a client Angular to make GraphQL calls
- Project Setup
- Hotchocolate GraphQL
- Relay
- Resolvers
- DataLoaders
- Middlewares
- Monitoring with Application Insights
- Automatic Persisted Queries
- GraphQL tools
- Security
- Authentication/Authorization
- Apollo Angular
- Schema Stitching
- Schema Federation
- Polymorphic Ids
- GraphQL Testing
- Http Interceptors
- Conditional field projection
- Subscriptions
If you want to hands on this intro, clone the repo and switch to the step branches.
git clone https://github.com/williamverdolini/graphQL-intro.git
cd graphQL-intro/
git switch 01.project-setup
Have fun.