Answers for "crud typeorm relationship"

0

crud typeorm relationship

// backend/src/inputs/update_user_input.ts

import { InputType, Field } from "type-graphql";


@InputType()
export class UpdateUserInput {
  @Field({ nullable: true })
  firstname?: string;

  @Field({ nullable: true })
  lastname?: string;

  @Field({ nullable: true })
  nickname?: string;

  @Field({ nullable: true })
  email?: string;

  @Field({ nullable: true })
  password?: string;
}
Posted by: Guest on March-30-2021

Browse Popular Code Answers by Language