To be able to execute CRUD operations to interact with our database, we have to model our data. By this, we’ll create schemas that will be used to send data. In our example, we’ll create a document posting document details coming from Client and go to Server where the POST method will receive data and will grave it into the database, through our schema.
In this post, I’ll explain how to add total of your record set to your element using Aggregate function. So, I wanted to print the subjects list with the total of documents that are stored into them.