Case Study 2 – Social Networking Platform
Welcome to our second use case, where we will build a real-life GraphQL application. Just like we did in the previous chapter, in this one, we will go through all the design and implementation processes, almost like we would in real-world application development.
In this chapter, we will apply our basic understanding of how GraphQL works with NestJS to build a social networking platform (SNP). Due to the complex and forever-evolving data structure of SNPs, GraphQL is often considered the best option to build it, while avoiding over-fetching or under-fetching, which are common issues associated with REST APIs.
We will use NoSQL databases due to the high volume of daily data in an SNP, intensive read-write operations, and the need for high availability and scalability. NoSQL databases are well-suited for these challenges. In our second case study, we will use MongoDB to build a scalable API for an SNP.
Let’s give our SNP...