import { ObjectType, ID, Int, Field } from 'type-graphql';
@ObjectType()
export default class Address {
@Field(type => ID)
id: String;
@Field()
type: string;
@Field()
title: string;
@Field()
location: string;
}
info: ts-node-dev ver. 1.0.0 (using ts-node ver. 9.1.1, typescript ver. 4.0.5)
while starting applciation using this command ts-node-dev --respawn server.shop.ts
I have got following error. (Unable to infer GraphQL type from TypeScript reflection system. You need to provide explicit type for 'id' of 'Address' class.)