:wave: Hi, I am trying to do a nested mutation. I ...
# orm-help
s
👋 Hi, I am trying to do a nested mutation. I want to register a new user and create a profile for that user. The user gets successfully created but the user is null. What am I doing wrong?
Copy code
const user = context.prisma.createUser({
        email: args.email,
        firstName: args.firstName,
        lastName: args.lastName,
        password,
        profile: {
          create: {
            userName: args.userName
          },
          connect: {
            userName: args.userName
          }
        },
      })
s
Thank you for your help, @Harshit!