hannah
0
Q:

type and field in type graphql

@ObjectType()
class Recipe {
  @Field()
  id: string;

  @Field()
  title: string;

  @Field()
  ratings: Rate[];

  @Field()
  averageRating: number;
}
0

New to Communities?

Join the community