How to Create a Mutation Query of Create a user in Graphql || Nestjs + Typeorm + Mongodb
Backend API Development | Graphql | Mongodb | NestJS | Typeorm

How to Create a Mutation Query of Create a user in Graphql || Nestjs + Typeorm + Mongodb

In this blog, we will discuss how to make a Mutation on Graphql to Create and Modify a user. We only gonna modify 2 files, user.service and user.resolvers user.service user.resolver Mutation: Create User user.service We will create one function here to create a user, we’ll name it ‘createUser(userData)‘. We have one parameter here containing all…

How to Create Query for Getting User by ID in Graphql || Nestjs + Typeorm
Backend API Development | Graphql | Mongodb | NestJS | Node Js

How to Create Query for Getting User by ID in Graphql || Nestjs + Typeorm

In this blog, we will discuss how to make a query to fetch one user by id. This’s very simple. We only gonna modify 2 files, user.service and user.resolvers user.service user.resolver user.service We’ll make one function with just one line of code. The code is simply finding our expected user in our database. With Typeform,…