📜  crud typeorm 关系 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:35.539000             🧑  作者: Mango

代码示例1
// 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;
}