NestJS GraphQL - I need to create a string array Field

前端 未结 0 364
青春惊慌失措
青春惊慌失措 2021-01-29 04:19

I have this field in a model but doesn\'t work

@Field(type => [],{ nullable: true })
product: string[];

I don\'t know what I miss.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题