0
votes

I'm using TypeGraphQL and TypeORM. In my input types, I have a field that looks like this:

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

However. I keep getting this error,

Error: Cannot determine GraphQL input type for options

How do I solve this?

1
Please update to 1.0.0 RC version which has more descriptive error messages - Michał Lytek

1 Answers

0
votes

Syntax seems to be fine, can you give us a little more info? Are you just using TypeORM+TypeGraphQL with something like Express or do you use NestJS? How are you importing Field?