Relations in Prisma.
Relation in prisma is defined as the inter-connection between two models in Prisma schema. For example, if we have a model named User and another named Post, then one user can have many number of posts associated with him/her. It represents 1 to many relation in Prisma. There are three types of relations in Prisma. … Read more
How to install Prisma in NestJS ?
Prisma is an open-source ORM for Node.js and TypeScript. It is a next-generation node.js and typescript ORM. It is used as an alternative to writing plain SQL or using another database access tool such as SQL query builders. While Prisma can be used with plain JavaScript, it embraces TypeScript and provides a level to type safety that goes beyond the guarantees … Read more
Get started with Prisma.
Brief about Prisma Let’s start this blog with a brief understanding of Prisma. Prisma is an open source ORM(Object-Relational Mapping). It is an alternative solution to writing plain SQL queries because writing plain SQL queries wont provide an ideal abstraction. Why use Prisma? Prerequisites Assuming that you already have NodeJs installed in your system, you … Read more
Integrating eSewa payment in laravel 10 in 2023
eSewa is a digital payment service provider based in Nepal. It allows users to make various types of online transactions such as mobile recharge, bill payment, ticket booking, online shopping, and money transfer through its platform. eSewa is an easy-to-use and secure platform that provides a convenient way for Nepali users to carry out their … Read more
What is NestJs? Why NestJs ? Basic information about NestJs
Three main components: Modules A module is a class annotated with a @Modules() decorator. The @module() decorator provides metadata the Nest marks use to organize the application structure. Each application has at least one module A module is a class annotated with a @Modules() decorator. The @module() decorator provides metadata the Nest marks use to … Read more