import { Option } from './option'; /** * [GraphQL Object's Field]{@ http://graphql.org/learn/queries/#fields} Decorator */ export interface FieldOption extends Option { /** * (Optional) Explicit field's type reference. If not provided, a type will be infered based on property's type. */ type?: any; /** * (Optional) If field should be non nullable */ nonNull?: boolean; /** * (Optional) If field is a list/array of some sort */ isList?: boolean; /** * (Optional) If field's return is a pagination object */ pagination?: boolean; /** * (Optional) Explicit field's name. If not provided the name of the field will be the same of the property */ name?: string; }