When working on an API, sometimes, we have to paginate our data in order to provide a good user experience. In this tutorial, we will be doing a NestJS TypeORM Pagination example. The example will be a products API. Setting up a NestJS GraphQL Project First, let’s set up our project. We will generate a …
Pagination in web development is the process of separating the data we display into a number of pages. Since displaying a large amount of data on a single page is both inconvenient for the user and performance heavy. If you’re using VueJS and Vuex, you might be wondering, how to paginate data with VueJs and Vuex?
We can use two approaches, the mutable, Array.splice() approach, or the immutable, Array.splice() with the spread operator approach. Choosing between the two approaches depends on the context and the environment you’re working in.
If you are developing a web app with Nest.js as the backend. And now, you want to deploy your whole app into a single server. Then you may run into a problem of serving static assets. Especially if your frontend is a SPA. Fear not, there are multiple ways to achieve this, so how to serve static assets with Nest.js?